I\'m designing one application in which I want to show specific location on Map.
I\'m passing String
of address which is already placed on Google Map
To show location and disply show directions button inside google Maps use this code snippet:
String geoUri = "http://maps.google.com/maps?q=loc:" + latitude + "," + longitude + " (" + locationName + ")";
Intent mapIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(geoUri));
if (mapIntent.resolveActivity(context.getPackageManager()) != null) {
context.startActivity(mapIntent);