Learning Android Development

Android Activity LaunchMode Made Simple

Understand when to use which activity launch mode.

Photo by SpaceX on Unsplash

When we declare our Activity in AndroidManifest.xml, there’s a little attribute we can set, which is launchMode. It has 4 possible settings i.e. standard, singleTop, singleTask and singleInstance.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store