performance - Periodically check if android GPS has new data -


i have been getting gps data through registerlocationlistener() , onlocationchanged() methods. problem speed reading of app freezes if there no more gps data (e.g. when go indoors, enter tunnel, etc). behavior want app user somehow notified speed reading not accurate due lack of fresh data (set speed zero, blink speed reading, etc).

how can that? though of checking periodically whether gps unit detecting satellites, i'm not sure how force periodic checks.

maybe start periodic timer. if timer sees last gps fix old displays notification. application should remember when last fix was.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -