Created
April 13, 2016 07:54
-
-
Save z4none/eae69f666fead94a2a05f2e77b2cba49 to your computer and use it in GitHub Desktop.
android check bluetooth
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); | |
| if (mBluetoothAdapter == null) { | |
| // Device does not support Bluetooth | |
| } else { | |
| if (!mBluetoothAdapter.isEnabled()) { | |
| // Bluetooth is not enable :) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment