First method: In Android
1 2 3 |
String uri = String.format(Locale.ENGLISH, "geo:%f,%f", latitude, longitude); Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri)); context.startActivity(intent); |
EDIT: This might not work with Google maps 7,0
hence you could change the URI to :
Second option:
1 |
String geoUri = "http://maps.google.com/maps?q=loc:" + lat + "," + lng + " (" + Location Name + ")"; |
Third option:
1 |
geo:0,0?q=FullAddress |
Fourth option:
1 |
String map = "http://maps.google.co.in/maps?q=" + FullAddress; |