Android examples for android.bluetooth:Bluetooth On Off
is Bluetooth Turned On
import android.bluetooth.BluetoothAdapter; public class Main{ public static boolean isBluetoothTurnedOn() { BluetoothAdapter mBluetoothAdapter = BluetoothAdapter .getDefaultAdapter();//from w w w . j ava 2 s. c o m return mBluetoothAdapter != null && mBluetoothAdapter.getState() == BluetoothAdapter.STATE_ON; } }