使用旧版本然后Android 4.3检测信标

时间:2016-04-14 12:53:17

标签: android bluetooth bluetooth-lowenergy ibeacon android-4.1-jelly-bean

我做了一个灯塔的应用程序,我想适应它的Android 4.1(API 16)。 信标使用BLE,但它是为4.3+版本实现的。 是否可以使用经典蓝牙来检测它们?

E/dalvikvm: Could not find class 'android.bluetooth.BluetoothManager', referenced from method org.altbeacon.beacon.BeaconManager.checkAvailability
E/dalvikvm: Could not find class 'com.orhanobut.hawk.Hawk$2', referenced from method com.orhanobut.hawk.Hawk.getObservable
E/dalvikvm: Could not find class 'com.orhanobut.hawk.Hawk$1', referenced from method com.orhanobut.hawk.Hawk.putObservable
E/dalvikvm: Could not find class 'com.orhanobut.hawk.HawkBuilder$2', referenced from method com.orhanobut.hawk.HawkBuilder.buildRx

1 个答案:

答案 0 :(得分:0)

信标仅适用于蓝牙LE ,而不适用于Bluetooth Classic。蓝牙LE检测通常需要Android 4.3 +

唯一的例外是在某些三星设备上运行4.2.x的库存ROM。三星用自己的API构建了自己的蓝牙LE堆栈。 A branch of the Android Beacon Library增加了对这些设备的支持。