get Bluetooth Adapter - Android Bluetooth

Android examples for Bluetooth:Bluetooth State

Description

get Bluetooth Adapter

Demo Code


//package com.java2s;

import android.bluetooth.BluetoothAdapter;

public class Main {
    static BluetoothAdapter getBluetoothAdapter() {
        return BluetoothAdapter.getDefaultAdapter();
    }//w  w w. jav  a2  s  . c  o  m
}

Related Tutorials