Then that would seem to imply that it does not really cost anything to
check on small moves as long as the repeat interval is not too high.  In
other words, I should worry more about how often I'm checking and not
whether my distance is too small.

>>>>> "T" == TreKing  <[email protected]> writes:

   T> On Sun, Feb 27, 2011 at 8:27 AM, Jake Colman <[email protected]>
   T> 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?
   >> 

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

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

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

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

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

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

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

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

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

-- 
Jake Colman -- Android Tinkerer

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