java - Getting Longitude and Latitude from the GpsMyLocationProvider (OSMdroid) -


i programming navigation app osmdroid.

how extract latitute , longitude gpsmylocationprovider geopoint, can center map on it?

this.mlocationoverlay = new mylocationnewoverlay(new gpsmylocationprovider(this),map); this.mlocationoverlay.enablemylocation();

i tried this. makes app crash, press button method: mapcontroller.setcenter((igeopoint) this.mlocationoverlay);

it looks casting mylocationnewoverlay igeopoint doesn't implement interface igeopoint, getting classcastexception. make sure pass in valid igeopoint setcenter().


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -