Search code examples
androidandroid-memory

Exiting Android App: back vs recent apps-->close


I thought [pressing back until your app screens are gone] and [pressing the square hardware button for recent apps, then closing the app] did the same thing. However I think i see a difference in my app when performing these 2 different actions. Do both close the app and remove it from memory?


Solution

  • Do both close the app and remove it from memory?

    No. Pressing BACK N times destroys N activities. It has no direct effect at all on your process, which will remain running for a time. Swiping your task off of the overview screen (a.k.a., recent-tasks list) will terminate your process.