Google Maps, No Option for Starting the Navigation, Only Preview is there
android, google-maps
Solution
This worked for me:
"To anyone who runs across this thread, I discovered the cause and solution to this issue in some cases.
When you search for a location using google.com or the google app, then tap the directions button, the start and end points are passed to the google maps app. When you select the route and only see the preview option, it's because google.com/app passed a starting set of coordinates to the maps app, so your asking google maps to provide directions between two points, not your current location to a point. Thus no turn-by-turn. Simply tap into the start field and select current location, bam."
Problem
In my application, I am starting the Google Navigation with the help of following set of code. ``` 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 am passing the Source Lat/Lng and Destination Lat/Lng of the respective addresses. Problem:- Here my problem is when the Navigation Screen opens there is no option to "Start" rather there is another option "Preview", This problem do not happens at all the places it works fine for some places but not for all. May I know what the whole mess is?? Thanks