nibbo Active Member Licensed User Longtime User Jun 7, 2021 #1 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) Click to expand... 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
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) Click to expand... 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
agraham Expert Licensed User Longtime User Jun 8, 2021 #21 Andrew (Digitwell) said: If main is not active Click to expand... Process_Globals are always available while the process exists, regardless of the state of the Activity in which they are declared. Upvote 0
Andrew (Digitwell) said: If main is not active Click to expand... Process_Globals are always available while the process exists, regardless of the state of the Activity in which they are declared.
nibbo Active Member Licensed User Longtime User Jun 8, 2021 #22 agraham said: Try copying the ScannerManager.scannerStream_NewData to Starter, make it Public and call it as Starter.scannerStream_NewData in ScannerManager.scannerStream_NewData Click to expand... 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
agraham said: Try copying the ScannerManager.scannerStream_NewData to Starter, make it Public and call it as Starter.scannerStream_NewData in ScannerManager.scannerStream_NewData Click to expand... 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.
nibbo Active Member Licensed User Longtime User Jun 8, 2021 #23 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
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.