Hi guys
Can someone give me a guideline how I can repeat my Connect function for a given time period (timeout) to keep on trying to connect to my BT device. At the moment I have a connect button and the user must keep on clicking on it until the connection is successful. Thi sis obviously not the most user friendly solution.
I have tried a while loop, but the app bombs out. I have also tried a seperate thread, but no luck. My knowledge of android/java is not supreme, so any help appreciated, thanks!
Can someone give me a guideline how I can repeat my Connect function for a given time period (timeout) to keep on trying to connect to my BT device. At the moment I have a connect button and the user must keep on clicking on it until the connection is successful. Thi sis obviously not the most user friendly solution.
I have tried a while loop, but the app bombs out. I have also tried a seperate thread, but no luck. My knowledge of android/java is not supreme, so any help appreciated, thanks!