In my application there is a behavior that I don't understand. I have the MainActivity
A as SingleTask
.
It calls an Activity
B that is SingleTask
too.
When I press the Home
button in the second activity to open another application, and after that I try to go to my application mantaining Home
button pressed i always go to Main Activity
, and I want second activity to be opened mantaining the state that had when i press Home
button.
I've tried setting then second activity to singleTop and it doesn't work.
Any help?