2

I'm using following code to locate location on default google map.

 Uri uri = Uri.parse("geo:"+ Global.detail_lat+","+Global.detail_long+"?z=15");
 Intent in = new Intent(Intent.ACTION_VIEW, uri);
 startActivity(in);

But using this code, when map will be open, there is no any point or mark or pin has been displayed on that location. It just looks like simple map only. How can i push pin on it? or how can i highlight that location on this default google map using this code?

Thanks, Jay Patel

Jai
  • 1,974
  • 2
  • 22
  • 42

2 Answers2

2

try this

Uri uri = Uri.parse("geo:"+ Global.detail_lat+","+Global.detail_long+"?z=15"+","+(Label+Name)+");

this will open default map with given label name

ρяσѕρєя K
  • 132,198
  • 53
  • 198
  • 213
0

Try this, Uri.parse("maps.google.com/maps?q="; + STREET + "+" + NUMBER + "&" + CITY);

it will open the Google Maps App showing the Adress with Marker and "Bubble", hopw this work for you

Rahul Upadhyay
  • 3,493
  • 2
  • 21
  • 37