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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -