I have created an activity , set it's filter as a Home activity and set launchMode
with singleTask
. When I press home ,the activity will be in onpause state then onStop . What confuse me is why the activity will be re-launched when back from icon displayed on "home pick" dialog ? It calls onCreate()
again without invoked onDestroy()
.
I know there is a way to solve this problem that is to set launcherMode
as singleIstance
, but this way is not good enough, because it will cause an other issue that the activity will not be able to process onActivityResult
.