android-beacon-library: java.lang.IllegalStateException in android.bluetooth.le.BluetoothLeUtils.checkAdapterStateOn
Expected behavior
Exception to be caught by library, in event of unusual IllegalStateException
Actual behavior
Exception not caught and causes app crash.
java.lang.IllegalStateException: BT Adapter is not turned ON
at android.bluetooth.le.BluetoothLeUtils.checkAdapterStateOn(BluetoothLeUtils.java:136)
at android.bluetooth.le.BluetoothLeScanner$1.handleMessage(BluetoothLeScanner.java:85)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:168)
at android.app.ActivityThread.main(ActivityThread.java:5885)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)
Steps to reproduce this behavior
Exact sequence not found but appears to be happening predominantly on HTC devices on app start. This has been reported from two apps we are involved with. Additionally, found the same issue reported on http://stackoverflow.com/q/37965687/5580666
Mobile device model and OS version
Description from one of the app teams:
"It seems that there is some problem with some new HTC phones (like htc one_e8 dual sim) that are running latest Android 6.0. Possibly this is bug in their firmware. This bug is on the 6th place with total crashes of 147.
It probably causes app to crash on start, so It’s not possible for users to use the app when bluetooth is turned on. It’s reported even in Google Play."
Android Beacon Library version
Seen in version 2.6.1 in the two apps we are involved with and also reported in version 2.7 on http://stackoverflow.com/q/37965687/5580666
IMPORTANT: This forum is reserved for feature requests or reproducible bugs with the library itself. If you need help with using the library with your project, please open a new question on StackOverflow.com.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 40 (18 by maintainers)
Brilliant, thanks @AlexLardschneider I’ll try to track one of those down.