The first screen in my app has this list picker.
But it doesn't seem to carry the selection to the other screens.
(I don't want to select the HC-05 on each and every screen in my program)
So I'm looking for some help for how to set it one time on my main screen and have it carry over to all the other screens.
This is probably not a hard task, that is if you have already seen it done before. But I'm still pretty new at this.
It won't. Switching to another screen will break the BT connection.
Consider using virtual screens (vertical arrangements that you hide and show) instead of real screens
what about setting some kind of variable?
On the first screen, when I make a selection from the list picker, it sets the variable
then when a different screen opens, it looks for that variable.
and sets the bluetooth connection to it.
would that be possible?
I have had a brianwave on this one...
Under the control options it is possible to "Open another screen with start value", so you could pass the 'value' to the another screen as the start value; then when the another screen initializes you will just need to "get start value".
Note though that you will also need a BluetoothClient component on the another screen; in which to pass this start value to...
I am a relative newbie around here; so this may not work, but it may be of help.
Kudos to you for this posting, as you have actually helped me with understanding/sorting out an issue I was having with one of my apps... so many thanks!