Android getDeviceBluetoothState
/**
* This method returns state of device bluetooth;
* possible bluetooth state values: STATE_OFF, STATE_TURNING_ON, STATE_ON, STATE_TURNING_OFF.
*
* @return bluetooth state
*/
public int getDeviceBluetoothState() {
return ((BluetoothManager) MevicsApplication
.getAppContext()
.getSystemService(Context.BLUETOOTH_SERVICE))
.getAdapter()
.getState();
}