OK, hard one to explain here unless you are using my app but I will try.
I have an app that uses a bluetooth barcode scanner in serial mode which connects just fine and passes the data back using AsyncStreams_NewData event.
My problem is that I want to be able to use the scanner and read the stream data in more than one activity.
Currently if I am in the activity where the connection was made and the AsyncStream is initialised everything works fine.
If however I start another activity and scan something it waits until it gets back before firing the NewData event, which makes sense.
How can I make it such that I am able to use the scanner in a couple of different activities? Is this even possible?
Thanks
I have an app that uses a bluetooth barcode scanner in serial mode which connects just fine and passes the data back using AsyncStreams_NewData event.
My problem is that I want to be able to use the scanner and read the stream data in more than one activity.
Currently if I am in the activity where the connection was made and the AsyncStream is initialised everything works fine.
If however I start another activity and scan something it waits until it gets back before firing the NewData event, which makes sense.
How can I make it such that I am able to use the scanner in a couple of different activities? Is this even possible?
Thanks