Get the list of paired bluetooth devices like this:

private final BluetoothAdapter mAdapter = BluetoothAdapter.getDefaultAdapter();

Set<BluetoothDevice> pairedDevices = mAdapter.getBondedDevices();

int numberOfDevices = pairedDevices.size();
if (numberOfDevices > 0) {
   for (BluetoothDevice device : pairedDevices) {
      String devAddr = device.getAddress();
      if(..whatever selection criteria you want..)
      {
         //..do something with that device
      }
   }
}


-Robert Scott
 Hopkins, MN

On Monday, February 15, 2016 at 5:54:42 PM UTC-6, borzack wrote:
>
> Hi All,
> I need know where android save the paired bluetooht list.
> The reason is that I've two devices where one of this can receive info 
> about second device only by wifi/sms but no by bluetooth, so I can pair 
> them only managing the paired devices bluetooth list.
> Someone can help me?
>
> thanks in advanced
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/5f7fbf38-fbc2-4697-b179-fc90f0ff9b14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to