Android Question sending message to waiting queue [SOLVED]

nibbo

Active Member
Licensed User
Longtime User
Can anyone explain what causes the above message in the logs?

I have a barcode scanner manager class which is created in the starter service. Everything seems to work OK (connect events etc..) until I scan a barcode.
Every time I scan a barcode I get the message
sending message to waiting queue (scannerstream_newdata)

The newdata event does not fire when in an activity other that main! When I click the back button until I reach the Main activity all of the barcode scans come flooding through...

I don't really understand what the message is saying!

Thanks
 

nibbo

Active Member
Licensed User
Longtime User
Try copying the ScannerManager.scannerStream_NewData to Starter, make it Public and call it as Starter.scannerStream_NewData in ScannerManager.scannerStream_NewData

Thanks again Agraham.
I did try the above but still the same.
The whole problem is that the event simply does not fire until the app returns back to the Main activity.
 
Upvote 0

nibbo

Active Member
Licensed User
Longtime User
SOLVED... when I said I copied Erels bluetooth chat example I did one thing wrong!!
I initialised the bluetooth manager class in Main, it needs to be in the Starter service create as per Erels example.
All workling now šŸ˜
Thanks to all for your help.
 
Upvote 0
Top