I'm trying to test a mobile browser app in the Android emulator. When
I try to access functions of navigator.geolocation the browser throws
an internal exception.

D/LocationManager(  196): Constructor: service =
android.location.ilocationmanager$stub$pr...@43c28c88
E/LocationManagerService(   52): requestUpdates got exception:
E/LocationManagerService(   52): java.lang.IllegalArgumentException:
provider=network
E/LocationManagerService(   52):        at
com.android.server.LocationManagerService.requestLocationUpdatesLocked
(LocationManagerService.java:861)
E/LocationManagerService(   52):        at
com.android.server.LocationManagerService.requestLocationUpdates
(LocationManagerService.java:831)
E/LocationManagerService(   52):        at android.location.ILocationManager
$Stub.onTransact(ILocationManager.java:79)
E/LocationManagerService(   52):        at android.os.Binder.execTransact
(Binder.java:287)
E/LocationManagerService(   52):        at dalvik.system.NativeStart.run
(Native Method)

It seems like for some reason the network location provider is not
registered by default. How does one fix this error?

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to