I am developing turn by turn navigation from current location to destination. I done this by using below code
Uri gmmIntentUri = Uri.parse("google.navigation:q="+address);
Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
mapIntent.setPackage("com.google.android.apps.maps");
startActivity(mapIntent);
The problem is that if click back in screen 1 it takes to screen 2. Then if i click back in screen 2 it takes to screen 3, then screen 4, then finally my activity.
What i want is if click back in screen 1, how can i take to my activity? how can i finish screen2, screen3, screen4 by clicking on back in screen1?
screen 1:
screen 2:
screen 3:
screen 4:
For this May be the Below Solution works i am not sure but let you try with this.
Start the Screen 2,3 with android:noHistory="true" in its manifest entry.
Launch the Screen 4 with the Intent
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With