We know the code for open the google navigation is
Uri gmmIntentUri = Uri.parse("google.navigation:q=Taronga+Zoo,+Sydney+Australia");
Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
mapIntent.setPackage("com.google.android.apps.maps");
startActivity(mapIntent);
but my questions are:
Is it possible to close it when the user reaches his destination? (return to my app)
Is it possible to add other destination when users reaches his destination? For example, when I open the intent I give a coordinates. But I want if he has the coordinates, I want to give it some new coordinates (others words when open the app give coordinates of point A when users is in point A give him coordinates of point B when he is in Point B give him coordinates of point C). (Maybe with a service running in foreground)
Is it possible to do all previous inside my app (maybe using Google Api for android) or is the only way opening the navigation app? (I'll prefer to have it inside my app and I believe controls actions would be easier.)