BluetoothSPPLibrary icon indicating copy to clipboard operation
BluetoothSPPLibrary copied to clipboard

Handler not working outside an Activity

Open naevtamarkus opened this issue 9 years ago • 0 comments

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!

naevtamarkus avatar Oct 25 '15 07:10 naevtamarkus