Sensoro / SDK-Android

SBK Demo Android
44 stars 50 forks source link

SensoroManager class android.bluetooth.BluetoothManager not found #4

Open rayjun opened 9 years ago

VegeChou commented 9 years ago

@rayjun Sorry, I can't reproduce this bug. What is the version of SDK you had used? You could download the latest version of SDK and have a try.

rayjun commented 9 years ago

ok, thanks

ChmlGr commented 9 years ago

Hello, I have been experiencing this error and after some debugging I've realised that the error is due to the SDK you use to compiled the library. Before Android 4.3 (API 18, Version code JELLY_BEAN_MR2), this class didn't exist. For APIS lower than 18, one should get the BluetoothAdpater by doing:

BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter()

Given that for supporting the 90% of the Android users one would need to use as a min SDK API 14, it would be nice if you could give support for that API onwards.

Regards

VegeChou commented 9 years ago

@ChmlGr All of our products are BLE(bluetooth low energy) devices, and BLE is support by Android since API 18. So SDK will not support the lower APIS. For more please see https://developer.android.com/guide/topics/connectivity/bluetooth-le.html.

ChmlGr commented 9 years ago

@VegeChou Sorry, I didn't know that. Thank you for your response.

fatehsinghsaini commented 7 years ago

device not detected,my android version is above of api level 18.No device found when compile and run your code.Please suggest what i do.

fangchenxuan commented 7 years ago

Hi,

Please try the following steps.

1.Kill the APP. Turn off the bluetooth, enable it and try again.

2.Disable WIFI, and try it again.

3.Reboot your phone, and try it again.

4.If it is possible, set transmitting power or broadcasting interval to higher value to increase the possibility to upgrade.

5.If it is possible, reset bluetooth, and try it again.

6.Make sure that the Location service is turned on


发件人: fatehsinghsaini notifications@github.com 发送时间: 2017年10月12日 6:20:58 收件人: Sensoro/SDK-Android 抄送: Subscribed 主题: Re: [Sensoro/SDK-Android] SensoroManager class android.bluetooth.BluetoothManager not found (#4)

device not detected,my android version is above of api level 18.No device found when compile and run your code.Please suggest what i do.

― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/Sensoro/SDK-Android/issues/4#issuecomment-336032226, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABVCgZSz8c60qzwYQji-yARy4t7_uEMTks5sra_KgaJpZM4EPIYi.