is Bluetooth Device Present - Android Bluetooth

Android examples for Bluetooth:Bluetooth Device

Description

is Bluetooth Device Present

Demo Code


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

import android.bluetooth.BluetoothAdapter;

public class Main {
    private static final BluetoothAdapter ADAPTER = getDefaultAdapter();

    public static boolean isDevicePresent() {
        return ADAPTER != null;
    }/*from   w w w.ja v  a  2s. co  m*/
}

Related Tutorials