I am trying to display a particular place in maps for my android application, I was able to use longitude and latitude of this place to display it on map. However info bubble did not point to the place instead it pointed to the location based on longitude and latitude.
I want to display particular place in the given location.
Here's my code
double latitude = some value;
double longitude = some value;
String label = "Some text";
String loc = "geo:" + latitude + "," + longitude;
String query = latitude + "," + longitude + "(" + label + ")";
String encodedQuery = Uri.encode(query);
String uriLoc = loc + "?q=" + encodedQuery + "&z=16";
Log.d(uriLoc, "no log");
Uri uri = Uri.parse(uriLoc);
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, uri);
startActivity(intent);