Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Start new navigation without exiting from previous navigation in Google Map

Tags:

People also ask

How do I change my starting point on Google Maps?

You can set Default start and end location over google maps using the direction tab. Step 1 Go to Add or Edit Map and scroll down to 'Tabs Settings' section. Step 3 Enter start and end location in 'Default Start Location' and 'Default End Location' Tab.

How do you repeat directions on Google Maps?

Look for the Google microphone/voice recognition button while navigation is going and tap it and ask: "what's my next turn". And, voila, it repeats!


I'm starting Google Map from my application to Navigate the user to some location.

Here is my code.

Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
                Uri.parse("google.navigation:q=" + rideDetailsModel.getEndLatitude() + "," + rideDetailsModel.getEndLongtitude()));
        startActivity(intent);

I'm using Chat Head like Uber driver app to take back to my application from Google Map. That's working fine. The problem is, While I'm invoking the same code above, Google Map asks me to exit from the previous navigation. Because previous navigation is not cleared.

How to force Google Map to create new navigation without asking to close the previous one.

Two methods can solve my problem.

Method 1

If I can close Google map application from my application, my problem solved. But I searched a lot, the non-rooted phone can't kill other applications.

Method 2

Clear the previous navigation and create new navigation. So Google Map won't ask the user to exit from the previous navigation before start the new navigation.