こんにちは。次世代システム研究室のT.M. です。 はじめに Android 4.3 からBLE (Bluetooth Low Energy) を用いてデータを受信することができるようになりました。このBLE の規格の一つとしてiBeacon があり、GMO チェックインで利用しております。Android 5.0 からはBLE で送受信できるようになり、BLE を扱うパッケージ (android.bluetooth.le) が導入されました。それに伴い、既存の受信実装が非推奨になりましたので、新実装を旧実装と比較しながら紹介していきたいと思います。 BLE のためのパーミッション 新旧実装方法ともにBluetooth のパーミッションの宣言が必要です。 <uses-permission android:name="android.permission.BLUETOOTH" /> <uses