[android-developers] Re: Urgent : GPS timeout in android

2010-04-07 Thread Farha Ansari
but i am getting location in method onLocationChanged() and this is where i want to check that if i dont get update say within 1 minute, thn is hould end handler. So, how can i do it here? Thanks On Apr 7, 9:32 am, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: One method you could use

Re: [android-developers] Re: Urgent : GPS timeout in android

2010-04-07 Thread mike
On 04/07/2010 01:36 AM, Farha Ansari wrote: but i am getting location in method onLocationChanged() and this is where i want to check that if i dont get update say within 1 minute, thn is hould end handler. So, how can i do it here? Thanks There are lots of ways to generate timeouts. If

[android-developers] Re: Urgent : GPS timeout in android

2010-04-07 Thread Brill Pappin
I'm doing that by using a Timer as a watchdog. It wakes periodically and checks to see if we have a fix yet. If it doesn't over a specified period of time, it can set a flag or generate an event to let the rest of the app know. - Brill Pappin On Apr 6, 11:34 pm, Farha Ansari

[android-developers] Re: Urgent : GPS timeout in android

2010-04-07 Thread Farha Ansari
can anyone please share with me the code for it. i really can't understand how to go about it. Thanks. On Apr 7, 6:16 pm, Brill Pappin br...@pappin.ca wrote: I'm doing that by using a Timer as a watchdog. It wakes periodically and checks to see if we have a fix yet. If it doesn't over a

[android-developers] Re: Urgent : GPS timeout in android

2010-04-07 Thread Farha Ansari
i m using background service On Apr 7, 6:16 pm, Brill Pappin br...@pappin.ca wrote: I'm doing that by using a Timer as a watchdog. It wakes periodically and checks to see if we have a fix yet. If it doesn't over a specified period of time, it can set a flag or generate an event to let the

[android-developers] Re: Urgent : GPS timeout in android

2010-04-06 Thread Maps.Huge.Info (Maps API Guru)
One method you could use is to setup a progress handler to monitor the location fix. If after x seconds you have nothing then you can end the handler, shutdown the listeners and inform your users. Pretty straight forward, I'm sure there are better ways to do this as well. Basically, you have to