Switching from GPS to Network Positioning

by Harold » Tue, 15 Dec 2009 23:49:40 GMT


Sponsored Links
 Hello,
im using a PositioningService in my Application.
In the onCreate() Method im getting a LocationManager with the
Criteria.ACCURACY_FINE,
the Problem is, now im getting only a position if im outside through
gps. If im inside i get no Position.
If i dont set the Criteria, then i only get Signal from network, but
not from gps.
I want to get the Signal from the best LocationService and it should
swith automatically.
Do i have to register two Listeners? Or should i do something in the
"onProviderDisbaled/Enabled" , "onStatusChanged" Methods?

Thank you!

--



Other Threads

1. java.awt.polygon equivalent in android?

Hi,

I'm trying to draw an n-dimensional polygon and unable to find an
equivant api to awt.polynomial. Does anyone know if there is one?

rgds, C

--~--~---------~--~----~------------~-------~--~----~

2. TabActivity vs VideoView vs Camera Preview contention

i'm looking at the source for TabHost and it turns out that when a 
tab is selected, its view is set to visibility GONE. hence me setting 
it to INVISIBLE afterwards probably isn't helping!

either way, i think making a SurfaceView GONE should probably stop it 
claiming chunks of screen and interfering with other views which are 
definitely VISIBLE.

does the panel agree that this is a bug?


--~--~---------~--~----~------------~-------~--~----~

3. TabActivity vs VideoView vs Camera Preview contention

4. When an app needs Google account credentials...

5. Where do I put my .adk file?

6. gestureDetector. Where is the onUp?

7. HTTP compression lost when using 3G connection