On Tue, Jan 11, 2011 at 3:03 AM, Vikram <[email protected]> wrote:

> 1. start the service, let it run for 30 minutes, and get location updates
> every 5 minutes
>

The likelihood of your Service running un-interrupted for 30 minutes,
especially if you're not running in the foreground, is extremely low.


> 2. use the alarm manager and get the service to wake up every 5th minute
> for 30 minutes
>

Do this.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to