Skip to content

Instantly share code, notes, and snippets.

@getsadzeg
Created April 19, 2019 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save getsadzeg/05bba86325fa8ea451a512ff2243f998 to your computer and use it in GitHub Desktop.
Save getsadzeg/05bba86325fa8ea451a512ff2243f998 to your computer and use it in GitHub Desktop.
Launchmode: SingleTop

If you configured the activity with singleTop launch mode, when you send an intent to android os to get a new instance of such activity, android os will first check the top activity in the back stack, if it is the requested activity type, it will return it, otherwise it will create a new instance of requested activity and return.

Yeah. Just sayin'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment