On Sun, Feb 27, 2011 at 8:27 AM, Jake Colman <[email protected]> wrote:

> But since you also have to specify a distance trigger doesn't that mean
> that Android is continually checking to see if you have moved the required
> distance?
>

Both conditions must be met. So you if you specify 60 minutes and 60 meters,
the check won't even run for at least an hour. After that it will check for
the distance. If the distance criteria is not met, I'm not sure how it
determines when to check again. Probably some heuristics based on the
current distance changed.

And if that's the case does it make any difference whether I specify 5, 10,
> or 100 miles as the trigger?
>

Well you won't get any updates until 5, 10, or 100 miles, after the initial
time has expired.

On Sun, Feb 27, 2011 at 9:53 AM, Rishi Kumar <[email protected]> wrote:

> I request location updates every 1 hr and every 1km.   So what happens?
>  This means that the provider connection (gps radio or network) will be open
> until i get a reading that matches these criteria.   So i'll at least get
> notified every hour (the timing isn't exact btw) or i'll get notified every
> 1km, whichever comes first.


I believe it is not whichever comes first - both conditions must be met for
the notification to go off.

It would not make sense otherwise. For example, if you set min time to 60
minutes and distance to zero if you did not care how far you'd moved, you'd
always get notified despite the time not expiring due to having "move zero".

Similarly if you specified 0 time and 60k distance, if it was either, you'd
still get constant updates due to the 0 minutes parameter.

-------------------------------------------------------------------------------------------------
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