Closed dkm closed 3 years ago
The problem comes from andnav/osmdroid that tries to enable some location provider without first checking that it is enabled. The code in MyLocationOverlay should look like:
if (mLocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER))
mLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, XXX, YYY, myLocationOverlay);
I was about to send a patch, but it looks like the code has changed a lot and I guess that this bug has been fixed now (the requestLocationUpdates are conditionned by the provider being enabled...).
Is there any plan on porting Gaggle to latest osmdroid ?
BTW, I'm trying to port Gaggle code to latest osmdroid. There a bunch of API changes, but if the expected behavior of the API hasn't changed, I should get something soon.
Ok, it compiles and runs mostly. I still have to review all systematic changes I've made and some piece that I commented out.
Would this be any useful for Gaggle ? I'll commit this in my fork, but won't bother that much if you have some private dev that will render my work useless if you publish it someday :)
You can see in my fork how I get latest osmdroid to work with gaggle. There are still some method that I should take care :) But it looks like it works
I'm using latest source (not the apk from the market) on ICS (4.0.3).
When switching to the map tab, Gaggle closes. Logcat gives the following trace:
I'm trying to debug that, but as this is my first android experience, I'm not very efficient :(