public void openClinicMap (View view){
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("geo:9.034418591265483, 79.86873415675286"));
Intent chooser = Intent.createChooser(intent, "Lauch Maps");
startActivity(chooser);
}
Advance Method
public void openClinicMap (View view){
Uri uri = Uri.parse("geo:9.034418591265483, 79.86873415675286?q=Pelista Siddha Clinic");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
intent.setPackage("com.google.android.apps.maps");
startActivity(intent);
}
0 Comments