Hi Jake,

This part of the code isn't well documented, but from my experience, here is 
how it works. 

minTime - notify me every X ms of an updated location.  
minDistance - notify me every X m of an updated location. 

So let's take an example. 

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.   We see this happening when we're listening for 
GPS and the user is in their navigation app.  So if the user is driving and 
receiving GPS as while we're registered, we'll get notified every 1KM since 
they are actively using the provider.

If the provider is not actively in use, i think it'll initiate the check 
primarily using the minTime parameter.   (This is just speculation on my 
part based upon what we've seen in our location-based apps, so take that 
with a grain of salt).  

This is definitely a great topic and requires a bit of experimentation to 
understand exactly how  it works in theory and how it differs in practice on 
each of the device models.    Hopefully someone from the Android team can 
shed some more light on this and to validate what i've said. 

Thanks

-rish 


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