WillyShakes / UdooWtf

GNU General Public License v3.0
1 stars 5 forks source link

check to determine whether BLE is supported on the device to avoid crash #16

Closed WillyShakes closed 8 years ago

WillyShakes commented 8 years ago

// Use this check to determine whether BLE is supported on the device. Then // you can selectively disable BLE-related features. if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) { Toast.makeText(this, R.string.ble_not_supported, Toast.LENGTH_SHORT).show(); finish(); }

WillyShakes commented 8 years ago

https://github.com/WillyShakes/UdooWtf/commit/117e94d6351a39e474aa3c0c94d86b5a0f339e5f