Best way to constantly monitor location
<p>I want to monitor a user's location on a regular basis, like Google Latitude does.  Something that would wake the phone up every X minutes, even if the app is currently not running, get the location, and send it to a server.  This is something that the user will have to opt into.</p>

<p>Using LocationManager alone does not seem to be the way to go.  I guess this is sort of a follow up question to this one: <a href="http://stackoverflow.com/questions/5846441/locationmanager-updates-every-minute-consuming-a-lot-of-battery-power">LocationManager updates every minute, consuming a lot of battery power</a></p>

<p>It seems like using a combination of AlarmManager and LocationManager would work.</p>

<p>What is the best way to do this?</p>
