It seems Nexus 7 first generation doesn't support Bluetooth Low Energy, at least when I follow exactly steps from tutorial
http://developer.android.com/guide/topics/connectivity/bluetooth-le.html
I do have app finish on following code:
if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {
Toast.makeText(this, R.string.ble_not_supported, Toast.LENGTH_SHORT).show();
finish();
}
Sure I checked, that Bluetooth enabled.
So the question is, how to find out for sure, if the device supports Bluetooth Low Energy standard?
UPDATE: I'm using android 4.3
Your code is really good, But do you add the following code exactly?
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
The important code is :
<uses-feature android:name="android.hardware.bluetooth_le" android:required="false"/>
Because we need to make sure the application can run succesfully,
However, if you want to make your app available to devices that don't support BLE, you should still include this element in your app's manifest, but set required="false"
That code works for me.
EDIT: I found something good for you about which devices be compatible with BLE feature