We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No crash instantiating BluetoothMedic
If you construct BluetoothMedic.getInstance(...) on a thread that does not have a looper, the call will crash with:
java.lang.RuntimeException: Can't create handler inside thread Thread[AsyncTask #4,5,main] that has not called Looper.prepare()
The call will succed on both the UI thread and a background thread so but only if the background thread has a looper.
The easiest workaround is to run this on a UI thread
Pixel 3a
2.17
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Expected behavior
No crash instantiating BluetoothMedic
Actual behavior
If you construct BluetoothMedic.getInstance(...) on a thread that does not have a looper, the call will crash with:
java.lang.RuntimeException: Can't create handler inside thread Thread[AsyncTask #4,5,main] that has not called Looper.prepare()
The call will succed on both the UI thread and a background thread so but only if the background thread has a looper.
The easiest workaround is to run this on a UI thread
Steps to reproduce this behavior
Mobile device model and OS version
Pixel 3a
Android Beacon Library version
2.17
The text was updated successfully, but these errors were encountered: