Search code examples
androidandroid-activity

Don't keep activities option not working


Hi I have enabled Don't Keep Activities option under Developer Settings. But it does not seem to be working.

For example

Lets say I have an App which launches a browser via intent. By theory since the user have left my app it should kill it right ? But it does not. On pressing back button it takes me to my App. Please let me know if I have understood this option correctly. If I did, would like to know why it is not working


Solution

  • Killing an Activity does not mean Closing the app. It just destroys the activity and frees the device resources. When you press back button, the previous activity is recreated again as if it were opened first time.