Search code examples
androidbackgroundexitmultitaskingondestroy

Android App Exits when Going into Background


Ever since I added a new Class to my Android app (specifically, a sqlite helper class) may app wants to relaunch after I press the home button. Before adding the class, the app would multitask as expected.

I am stumped. It seems onDestroy is called every time the app goes into the background.

Any tips or thoughts as to why this would happen?


Solution

  • It turned out I had android:finishOnCloseSystemDialogs="true" in the manifest file.