Iam developing an android app.about google maps API for android i want to ask that
i have override ontap method so that i’ll be getting coordinates of the tapped location on googlemap but know i want to show a marker or pin on the taaped location coordinates. please tell me how i can modify my below code:
public boolean onTap(GeoPoint point, MapView mapView)
{
Context contexto = mapView.getContext();
String msg = "Lat: " + point.getLatitudeE6()/1E6 + " - " +
"Lon: " + point.getLongitudeE6()/1E6;
Toast toast = Toast.makeText(contexto, msg, Toast.LENGTH_SHORT);
toast.show();
return true;
}
Best Regards,
Muhammad Tahir Ashraf
Check Answers below.
Every thing is possible.
Check the below link for complete information about the Google Maps.
http://developer.android.com/resources/tutorials/views/hello-mapview.html