BluetoothSPPLibrary
BluetoothSPPLibrary copied to clipboard
Handler not working outside an Activity
Hi,
I have a problem with your library and I'm a bit lost. If I use it from an Activity (UI) it works fine but, if I use it from a BroadcastReceiver (connect to a BT device on the background from outside the app) then the library does not work well.
I have been inserting debug messages inside the library and my conclusion is that the mHandler from BluetoothSPP does not receive the messages sent from BluetoothService. The message is simply lost!
Any idea why could this be happening?
Thanks!