My app has a list of places that when pressed, it will open to its specific page displaying a lot more of the place's information.
Inside the page is an ImageView (Map Marker), that if pressed, it will open a Google Map App with the specific coordinates of the place.
It goes like this: LIST OF PLACES -> SPECIFIC PAGE OF A PLACE -> GOOGLE MAP APP WITH COORDINATES (Please check the Image Attached.)
This code is working fine for opening Google Map App with only 1 place.
public void MapClick (View v) {
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("geo:13.669595,124.4130464?q=13.669595,124.4130464(Binurong Point)"));
startActivity(intent);
}
How do I pass the Coordinates from the Array to the ImageView (Map Marker), so that if it is pressed, it will open Google Map App based from what place it is?
This is my starting point:
String[] attractgeocoordinates = {
// Place #1
"13.5735488,124.1371557",
// Place #2
"13.7077914,124.3876623",
}
Thanks!