Hi Roberts,
in this way I can know the devices list, instead I need modify it. In 
others words, I know the name and MAC address of new device (far of my old 
device) that I want add it at my old device paired list, so I need discover 
how change this list manually.
Do you think that is possible? how do it?

Thanks in advanced.

Il giorno martedì 16 febbraio 2016 23:59:35 UTC+1, RLScott ha scritto:
>
> 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/a995478d-de78-4205-aeb4-a0b1054054d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to