Java tutorial
//package com.java2s; import android.bluetooth.BluetoothAdapter; public class Main { public static boolean isBluetoothTurnedOn() { BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); return mBluetoothAdapter != null && mBluetoothAdapter.getState() == BluetoothAdapter.STATE_ON; } }