does Device Has Bluetooth - Android android.bluetooth

Android examples for android.bluetooth:Bluetooth

Description

does Device Has Bluetooth

Demo Code

import android.bluetooth.BluetoothAdapter;

public class Main {

  static boolean doesDeviceHasBluetooth() {
    return getBluetoothAdapter() != null;
  }//from ww  w.ja va 2 s. c o m

  static BluetoothAdapter getBluetoothAdapter() {
    return BluetoothAdapter.getDefaultAdapter();
  }

}

Related Tutorials