Android Question BluetoothAdmin crashes while searching for devices

DickD

Active Member
Licensed User
I am experimenting with the UN-modified Bluetooth/ChatActivity sample code. This works just fine when I am in my office with only 3 bt devices nearby. All 3 devices are found quickly. However, I recently took 2 phones into our busy cafeteria and found that the program crashed with "Unfortunately your app has stopped" while the program was "Searching for devices...". One phone running Android 6.0.1 crashed consistently after finding 5 devices and the second, older phone running 4.4.2 with less memory crashed after just 2.

Unfortunately, since I was not near my PC I was not running the debugger so could not get any error messages. I searched the code thoroughly and can find no array bounds which might have been exceeded or timers which might have timed out.

I realize this may be an old thread but I don't see that there has ever been a clear explanation or fix provided. What's the bottom line on this problem?
 
Top