In android app, if specify in the manifest <Aftapplication> with a class decedent from the Application, this class will be instantiated and its onCreate() will be called when start the app. And the default activity specified in the manifest will be created as well.
After the app is stared and when long press on device's home button to show the 'recent activity' list, and from there swipe out the app.
Noticed the activity onDestroyed in called, and immediately the application class's onCreate() is called again. But the activity's onCreate() is not called until you click on the app icon in the luncher.
Question: why the application class's onCreate() is called at the time the activity is destroyed, instead to be called at when clicking on the luncher icon of the app?
Thanks!