is Bluetooth Supported - Android Bluetooth

Android examples for Bluetooth:Bluetooth State

Description

is Bluetooth Supported

Demo Code


//package com.java2s;
import android.bluetooth.BluetoothAdapter;

public class Main {
    public static boolean isBluetoothSupported() {
        BluetoothAdapter mBluetoothAdapter = BluetoothAdapter
                .getDefaultAdapter();// w  w w .j  a va 2 s .c  om
        if (mBluetoothAdapter == null) {
            // Device does not support Bluetooth
            return false;
        } else {
            return true;
        }
    }
}

Related Tutorials