Hi
Currently my BT app is hard coded for the expected BT name (HC-05). I wish to be able to select from a range of paired BT devices (with the same or different names - obviously each with a unique MAC address)
Using the example code form here https://www.b4x.com/android/forum/threads/android-bluetooth-bluetoothadmin-tutorial.14768/#content I get a selection list - but devices are listed multiple times.
On the last page of the thread, there is a suggestion to use a 'map' to prevent duplicates. I cant get this to work - I wont post code as I am just guessing and cant figure out how to implement this......
Would someone be kind enough to update the original example, using a map to prevent duplicates in the BT device list?
Thank you!
Andrew
Currently my BT app is hard coded for the expected BT name (HC-05). I wish to be able to select from a range of paired BT devices (with the same or different names - obviously each with a unique MAC address)
Using the example code form here https://www.b4x.com/android/forum/threads/android-bluetooth-bluetoothadmin-tutorial.14768/#content I get a selection list - but devices are listed multiple times.
On the last page of the thread, there is a suggestion to use a 'map' to prevent duplicates. I cant get this to work - I wont post code as I am just guessing and cant figure out how to implement this......
Would someone be kind enough to update the original example, using a map to prevent duplicates in the BT device list?
Thank you!
Andrew