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
Post a Comment