Hi All,
I have an app that connects to multiple devices and gets data off each one.
I only get data of a phone once and display it so i ignore it the next time the device detects the same one. However if the phone that has already been connected too is nearer than one that hasnt it will keep picking up the phone that i don't want.
Is there a way I can force to go to the next device even if its further away? Else it will keep trying to connect to a phone i already have connected too..
Thanks
Edit: I just thought I start a new thread when i detect a device and in this thread i call stopDiscovery() then at the end i startDiscovery() again. Would this by why it picks up the same device again? is there a way i can pause discovery while i do my transfers and then hopefully it will go to the next device as it should?
I have an app that connects to multiple devices and gets data off each one.
I only get data of a phone once and display it so i ignore it the next time the device detects the same one. However if the phone that has already been connected too is nearer than one that hasnt it will keep picking up the phone that i don't want.
Is there a way I can force to go to the next device even if its further away? Else it will keep trying to connect to a phone i already have connected too..
Thanks
Edit: I just thought I start a new thread when i detect a device and in this thread i call stopDiscovery() then at the end i startDiscovery() again. Would this by why it picks up the same device again? is there a way i can pause discovery while i do my transfers and then hopefully it will go to the next device as it should?