[android-developers] Re: Getting location with multiple providers

2009-02-14 Thread Aaron Smith
Aha. I didn't know it was possible to register more than one provider at a time. I'll give that a go. Cheers. On Feb 13, 2009 5:47 PM, Timo Bruck timot...@gmail.com wrote: I believe you have to register for multiple location providers (network, gps). In my code, I call requestLocationUpdates()

[android-developers] Re: Getting location with multiple providers

2009-02-13 Thread Timo Bruck
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

[android-developers] Re: Getting location with multiple providers

2009-02-13 Thread Faber Fedor
How about using LocationManager.getBestProvider()? On Fri, Feb 13, 2009 at 12:47 PM, Timo Bruck timot...@gmail.com 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

[android-developers] Re: Getting location with multiple providers

2009-02-13 Thread JonkNYC
On Feb 13, 1:45 pm, Faber Fedor faberfe...@gmail.com 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