I am using this code to open the Google Maps app in android.
if(source != null && destination != null) {
Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse("http://maps.google.com/maps?daddr="
+ destination.latitude + "," + destination.longitude + "(" + ADDRESS + ")"));
startActivity(intent);
} else {
Toast.makeText(context, "Please check your internet connection and try again!!", Toast.LENGTH_LONG).show();
}
What happens when it goes to the Google Maps app of android, at first it displays the ADDRESS in the destination box and "Your Location" in the source box but after that, it gets changed to "Point on Map". Is there any way by which I can avoid this? Or I am missing something?
Can anybody help me with this?