My main activity is set to use the singleTask model, and activity2 will be started through main activity, if I press the Home button at the activity, and then enter my application again I will go in to the main activity rather than the latest activity activity2.
And I have googled ,and found a same problem in this post and it have got a solution.
However when I use google map, I found that it does not use any solution mentioned in the post.
The MapActivity of Google Map is singleTask with a MAIN intent-filter.
But if you see this, you will find that use will get back to the latest activity.
What solution may google map use?