[android-developers] Re: Best practice for implementing watchdog

2009-09-18 Thread BJP
Thanks for the tip; it resulted in much more code, but I think the demands on the system should be smaller now. For others who might read this, my implementation looks like this (Mark, feel free to correct mistakes): private Handler mGPSTimeOut; private Runnable mGPSCallback = null; private long

[android-developers] Re: Best practice for implementing watchdog

2009-09-17 Thread Mark Murphy
BJP wrote: > I'm writing an application where real-time knowledge of the GPS state > is critical to convey to the user. I request GPS updates at 1000 ms > intervals -- when I haven't received another update 1500 ms past the > most recent update, I want to display a yellow icon, and 5000 ms after