You are here: Forum Home → ANT Developers Forums → ANT in Mobile Phones → Thread
I recently found out that the ANT method "setSearchTimeout()" doesn't let you set the searchTimeout to anything beyond the MAX, which is 25 seconds for low priority and 5 seconds for high priority. Specifically for my situation, I want to extend the searchTimeout to 10 minutes or ideally to set it to the screen display's timeout. Additionally, I am only using one ANT channel at all times, so low and high priority are of no significance to me.
I know I can set an arbitrary searchTimeout via the "setSearchTimeout()" method and have it retry an X amount of times in order to accomplish the 10 minute goal. I am just not sure where to put that logic or how to implement it. Any help is appreciated.
For reference, I am getting over it Java on a Samsung S4 Galaxy. Let me know if you have any coding ideas on how to extend the searchTimeout to 10 minutes.
Thanks