Launch Modes in Android

There are four types of launch modes in android :-

Standard → new instance is created whenever we launch new activity

SingleTaskonly one instance will remain in stack. When activity is launched old instance will be called and activity on the top of it will be destroyed

SingleTop → if activity having this launch mode is already on top new Instance will not be created when it is launched but if it is not on top then only new instance will be created

SingleInstance it is similar to singleTask but new activity will be in new task