-
-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
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
Android: Human readable error message if BLE is not supported on the platform (Emulator or version < 4.4KitKat) #36
Comments
"It's crash" is not very helpful. 😒 |
More than one month no answer -> close |
Hi, I’m so sorry that I reply so late. So sorry again. BLE Adapter crash on Jellybean and Kitkat. (Both are tested on Xamarin Android Player - not actual device)
Thanks.
|
Ok. We have to review that. Have you tested it on physical devices, too? |
Hi, Thanks for reopening issue. Not yet. I will try it asap and send the result to you. Thanks.
|
And: You say it's crashing. Please provide the exception messages and the stacktrace. |
Hi, I attached screenshot with crash log. but it's not shown here. (I attached it using email) Plus, It may take little longer to find actual device (Kitkat and Jellybean) |
![screen shot 2016-05-12 at 2 20 26 pm](https://cloud.githubusercontent.com/assets/14910356/16128621/632da24c-343c-11e6-8d73-55fe784dd6f7.png) ![screen shot 2016-05-27 at 12 02 51 am](https://cloud.githubusercontent.com/assets/14910356/16128647/7ff0e650-343c-11e6-80cb-60c18e509d8d.png) ![screen shot 2016-05-27 at 12 02 59 am](https://cloud.githubusercontent.com/assets/14910356/16128651/84fd3662-343c-11e6-91cc-4c8ec09363ba.png) ![screen shot 2016-05-27 at 12 04 24 am](https://cloud.githubusercontent.com/assets/14910356/16128659/8ea9a6d2-343c-11e6-86a5-628463b4ab30.png) ![screen shot 2016-05-27 at 12 12 25 am](https://cloud.githubusercontent.com/assets/14910356/16128666/99bfd12c-343c-11e6-9768-cc758fbe7931.png) |
Hi, I tested it today on actual device (Galaxy Note 1) It crash. And I uploaded screenshots on github’s issue. Thanks.
|
Oh, I found it from wikipedia . BLE's supported from Android 4.3 JellyBean or above. |
Android - Check BLE availability by:
|
We should try do not check if it's a simulator/emulator. Instead we should just check if ble is available. |
You should not instantiate the Adapter by calling new.
For both cases, if** BLE it's not available on your device** you will get a fake adapter which will not crash and print out error messages. You can always check availability by calling For more info see our readme. |
Thanks for your answer. |
Hi, Very Thanks for this package.
Are you planning to support for KitKat or Jelly Bean.
It's crash on those version.
The text was updated successfully, but these errors were encountered: