thank you for the quick response. could you please explain to me the
following:

1. i see that keeping the GPS provider activated drains the battery.
do you have suggestions to why is that? is there a main loop that
checks for location updates every once in awhile and notifies
LocationManager on change? from your explanation i see that processing
the response from the satellites is not the complex thing so it can't
be the cause of that.

2. continuing to my first question, how does the update listening
mechanism work? i'm guessing the satellites don't know all the phones
and push updates to them, so is it really a check every X seconds
(depend on the configuration) whether the location has changed?

thanks,
Tomer

On Dec 29, 10:23 pm, Dianne Hackborn <[email protected]> wrote:
> That doesn't really make sense.  When you ask for location, you will specify
> how accurate you want the data to be.  If you ask for GPS accuracy, it will
> start using that (if it hasn't already).  You keep the request open, so it
> continuously looks for satellites and tracks movement.  Each update it gives
> you includes the accuracy of the position, which is based on the source of
> the data (network, GPS, etc), and for GPS the number of satellites.
>
> Often when you first ask for GPS data, there will be no GPS fix at all, but
> you will still be able to get some data based on cell towers.  The accuracy
> information tells you how much you can infer from each report you get.  But
> this is not a one-shot request -- as long as you have asked for position
> reports, it will continually monitor the location as accurately as it can.
>
> There is of course the newer API to get the last location, and of course
> that is what it says -- the last reported location, whatever that was,
> without use GPS or cell towers to try to determine the current location.
>
>
>
>
>
>
>
>
>
> On Wed, Dec 29, 2010 at 10:59 AM, t <[email protected]> wrote:
> > how accurate is the data from Android's GPS location provider?
>
> > does the device always try to seek a satellite, or does it sometimes
> > return an optimization of the past locations without querying the
> > satellites?
>
> > if this question is device-specific, i'm asking about HTC Hero, HTC
> > Desire and Google Nexus One.
>
> > thanks
>
> > --
> > 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]<android-developers%2Bunsubs 
> > [email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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