get Paired Bluetooth Devices - Android Bluetooth

Android examples for Bluetooth:Bluetooth Bond

Description

get Paired Bluetooth Devices

Demo Code


//package com.java2s;
import java.util.Set;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;

public class Main {
    public static Set<BluetoothDevice> getPairedBluetoothDevices() {
        BluetoothAdapter bluetoothAdapter = BluetoothAdapter
                .getDefaultAdapter();//from  www  . ja v a2  s  .co  m
        return bluetoothAdapter.getBondedDevices();
    }
}

Related Tutorials