Java tutorial
//package com.java2s; //License from project: Open Source License import android.bluetooth.BluetoothAdapter; public class Main { /** * Determine if bluetooth is turned on. * * @return True if bloetuuth is turned on. */ public static boolean isBluetoothOn() { final BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); return bluetoothAdapter.isEnabled(); } }