Android LocationListener.onLocationChanged() -- trigger if time passed, but location not?
<p>I'm writing some tracking app for android at the moment and would like to use the onLocationChanged() method to receive updates.</p>

<p>Now i want to receive updates every once in a while, even if the location itself did not change, so i know the tracking device is still alive etc.</p>

<p>It seems like onLocationChanged will only be triggered if the actual coordinates change, the timestamp alone does not suffice.</p>

<p>I've worked my way around this by polling LocationManager.getLastKnownLocation( LocationManager.GPS_PROVIDER ) every x-seconds and not using onLocationChanged. </p>

<p>I'm afraid though, that this is not the most effective method.</p>

<p>I could imagine some mechanism that would send updates every 30secs while the vehicle is moving and every 10minutes if it's not (to get some heartbeat).</p>

<p>Any ideas?</p>

<p>Thanks! </p>
