On Feb 13, 1:45 pm, Faber Fedor <[email protected]> wrote:
> How about using LocationManager.getBestProvider()?
That will just return one provider, which may not get a fix for a long
period of time. Requesting updates from multiple providers like Timo
said is definitely the way to go.
-Jon
>
> On Fri, Feb 13, 2009 at 12:47 PM, Timo Bruck <[email protected]> wrote:
> > I believe you have to register for multiple location providers (network,
> > gps).
>
> > In my code, I call requestLocationUpdates() on each provider, but they all
> > share the same LocationListener. My LocationListener keeps track of the
> > highest quality fix received so far (via getAccuracy()) and discards fixes
> > that are worse than that.
>
> Hmmm, I'll have to try that.
>
> --
> Faber Fedor
> Linux New Jerseyhttp://linuxnj.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---