Giter Site home page Giter Site logo

Android: Human readable error message if BLE is not supported on the platform (Emulator or version < 4.4KitKat) about dotnet-bluetooth-le HOT 15 CLOSED

dotnet-bluetooth-le avatar dotnet-bluetooth-le commented on May 19, 2024
Android: Human readable error message if BLE is not supported on the platform (Emulator or version < 4.4KitKat)

from dotnet-bluetooth-le.

Comments (15)

smstuebe avatar smstuebe commented on May 19, 2024
  • Where does it crash?
  • Do you have a crash log and the code that causes the crash log?
  • On which device are you testing?

"It's crash" is not very helpful. 😒

from dotnet-bluetooth-le.

smstuebe avatar smstuebe commented on May 19, 2024

More than one month no answer -> close

from dotnet-bluetooth-le.

allbdeveloper avatar allbdeveloper commented on May 19, 2024

Hi, I’m so sorry that I reply so late.
I know you have put big effort to make library.

So sorry again.

BLE Adapter crash on Jellybean and Kitkat. (Both are tested on Xamarin Android Player - not actual device)

  • JellyBean
  • kitkat

Thanks.

On Jun 15, 2016, at 6:43 AM, Sven-Michael Stübe [email protected] wrote:

More than one month no answer -> close


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub #36 (comment), or mute the thread https://github.com/notifications/unsubscribe/AOODlEc_HWs5XujYlZ0MzujL3DjUdvGbks5qLyCAgaJpZM4IZdyu.

from dotnet-bluetooth-le.

smstuebe avatar smstuebe commented on May 19, 2024

Ok. We have to review that. Have you tested it on physical devices, too?

from dotnet-bluetooth-le.

allbdeveloper avatar allbdeveloper commented on May 19, 2024

Hi, Thanks for reopening issue.

Not yet.

I will try it asap and send the result to you.

Thanks.

On Jun 16, 2016, at 3:57 PM, Sven-Michael Stübe [email protected] wrote:

Ok. We have to review that. Have you tested it on physical devices, too?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub #36 (comment), or mute the thread https://github.com/notifications/unsubscribe/AOODlL8iSGbBNMGp1PK9QApgKnVyiY3Rks5qMPP3gaJpZM4IZdyu.

from dotnet-bluetooth-le.

smstuebe avatar smstuebe commented on May 19, 2024

And: You say it's crashing. Please provide the exception messages and the stacktrace.

from dotnet-bluetooth-le.

allbdeveloper avatar allbdeveloper commented on May 19, 2024

Hi, I attached screenshot with crash log. but it's not shown here. (I attached it using email)
DId you see that screenshot from email box? and you want more information? (exception messages & stacktrace)
If so, I will send it.

Plus, It may take little longer to find actual device (Kitkat and Jellybean)

from dotnet-bluetooth-le.

allbdeveloper avatar allbdeveloper commented on May 19, 2024
![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)

from dotnet-bluetooth-le.

allbdeveloper avatar allbdeveloper commented on May 19, 2024

I tested it on actual device.

Samsung Galaxy Note 1. (SHV-E160L)
Android 4.1.2 (Jelly Bean)
It crash on this device.

screen shot 2016-06-17 at 11 34 02 pm
screen shot 2016-06-17 at 11 34 13 pm
screen shot 2016-06-17 at 11 33 50 pm
screen shot 2016-06-17 at 11 34 43 pm

from dotnet-bluetooth-le.

allbdeveloper avatar allbdeveloper commented on May 19, 2024

Hi,

I tested it today on actual device (Galaxy Note 1)
Android 4.1.2 - Jelly Bean.

It crash.

And I uploaded screenshots on github’s issue.

Thanks.

On Jun 16, 2016, at 8:18 PM, Sven-Michael Stübe [email protected] wrote:

And: You say it's crashing. Please provide the exception messages and the stacktrace.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub #36 (comment), or mute the thread https://github.com/notifications/unsubscribe/AOODlAYfC_uyQ9fdwGx_cuZwQGe8XvQ4ks5qMTD0gaJpZM4IZdyu.

from dotnet-bluetooth-le.

allbdeveloper avatar allbdeveloper commented on May 19, 2024

Oh, I found it from wikipedia .
https://en.wikipedia.org/wiki/Bluetooth_low_energy#Android

BLE's supported from Android 4.3 JellyBean or above.
So It shouldn't work on 4.1 JellyBean.

from dotnet-bluetooth-le.

xabre avatar xabre commented on May 19, 2024

Android - Check BLE availability by:

  • Checking SDK level and notify via log message / custom exception
  • Check if Emulator and notify via log message / custom exception

from dotnet-bluetooth-le.

smstuebe avatar smstuebe commented on May 19, 2024

We should try do not check if it's a simulator/emulator. Instead we should just check if ble is available.

from dotnet-bluetooth-le.

xabre avatar xabre commented on May 19, 2024

You should not instantiate the Adapter by calling new.

  • If you use the vanilla version (non mvvmcross) of the plugin please resolve IAdapter by calling CrossBluetoothLE.Current.Adapter
  • For MvvmCross use Mvx.Resolve

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 callingCrossBluetoothLE.Current.IsAvailable

For more info see our readme.

from dotnet-bluetooth-le.

allbdeveloper avatar allbdeveloper commented on May 19, 2024

Thanks for your answer.

from dotnet-bluetooth-le.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.