• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps repeat bluetooth connection script

chubbspet

Lurker
May 11, 2014
1
0
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!
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones