BLE Beacon の調査
bouzuya opened this issue · comments
https://developer.android.com/reference/android/Manifest.permission.html
String ACCESS_COARSE_LOCATION
Allows an app to access approximate location.
String ACCESS_FINE_LOCATION
Allows an app to access precise location.
https://developer.android.com/guide/topics/connectivity/bluetooth-le.html
この手順に従って進めても BluetoothAdapter
の startScan
は DEPRECATED なので getBluetoothLeScanner
と bluetoothLeScanner
の startScan
を使う。
https://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html
getBluetoothLeScanner
は API バージョンによって使えなさそうなので注意が必要。
iBeacon 自前対応の例
https://www.gaprot.jp/pickup/ibeacon/abeacon
バージョンごとの挙動の違いも含めるとつらそうなので、↓をためす
https://github.com/AltBeacon/android-beacon-library
Eddystone ... Google の beacon 仕様
http://altbeacon.github.io/android-beacon-library/eddystone-support.html