I need to create a set of android objects (BluetoothDevice objects). Of course, I chose a Set because I don't want any duplicate in my Collection.
My problem is the following : When I do a bluetooth discovery in Android I receive twice the same device (for e.g. device WINIE7, with mac 80:22:00:22:00), and the references are not the same, so both of them are added in the Set.
Would it be possible to create a kind of "Comparator" to my Set, which would tell to compare the mac addresses ?
Thanks.