In my application, I launch Google Navigation using the following code set.
String uri = "http://maps.google.com/maps?saddr="+ gpsLatitude + "," + gpsLongitude + "&daddr=" + updateAcceptedOfferDetailsData.getDestinationLat()+","+updateAcceptedOfferDetailsData.getDestinationLon(); Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri)); intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity"); startActivity(intent);
I pass Source Lat / Lng and Destination Lat / Lng the corresponding addresses.
Problem: - My problem here is that when you open the navigation screen there is no "Start" option, but there is another "Preview" option. This problem does not occur in all places where it works great in some places, but not for everyone. Can I find out what a mess is?
thanks
android google-maps
Gaurav arora
source share