PATRIK27 / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

LocationListenerProxy requests illegal providers #167

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What is the expected output? What do you see instead?
02-26 09:10:43.297: ERROR/wigle(472): Caused by: 
java.lang.IllegalArgumentException: provider=network
02-26 09:10:43.297: ERROR/wigle(472):     at 
android.os.Parcel.readException(Parcel.java:1326)
02-26 09:10:43.297: ERROR/wigle(472):     at 
android.os.Parcel.readException(Parcel.java:1276)
02-26 09:10:43.297: ERROR/wigle(472):     at 
android.location.ILocationManager$Stub$Proxy.requestLocationUpdates(ILocationMan
ager.java:646)
02-26 09:10:43.297: ERROR/wigle(472):     at 
android.location.LocationManager._requestLocationUpdates(LocationManager.java:58
2)
02-26 09:10:43.297: ERROR/wigle(472):     at 
android.location.LocationManager.requestLocationUpdates(LocationManager.java:446
)
02-26 09:10:43.297: ERROR/wigle(472):     at 
org.osmdroid.LocationListenerProxy.startListening(LocationListenerProxy.java:22)
02-26 09:10:43.297: ERROR/wigle(472):     at 
org.osmdroid.views.overlay.MyLocationOverlay.enableMyLocation(MyLocationOverlay.
java:522)

What version of the product are you using? On what operating system?
r820

Please provide any additional information below.
Attached is a diff to request enabled providers and only request updates on 
them.

Original issue reported on code.google.com by bob.hage...@gmail.com on 26 Feb 2011 at 3:33

Attachments:

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r822.

Original comment by neilboyd on 26 Feb 2011 at 7:08

GoogleCodeExporter commented 8 years ago
I've applied this patch. It's a nice fix. But I'm interested in what conditions 
this occurs. What device have you got? Doesn't it have a network provider? Or 
is there some other configuration that causes this?

Original comment by neilboyd on 26 Feb 2011 at 7:10