Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 14
    If 'list' starts 'main' then have it call finish() immediately after startActivity(...). That way if the user presses BACK from 'main' there will be nothing to go back to.
    – Squonk
    Commented Sep 10, 2012 at 20:08
  • this is for notification navigation but the concepts may be applicable developer.android.com/guide/topics/ui/notifiers/…
    – Kevin Lee
    Commented Feb 16, 2016 at 18:52
  • please accept the answer that says to finish() current activity after starting the next one! Commented Feb 10, 2021 at 16:53