Android: keep task's activity stack after restart from HOME

前端 未结 3 1162
野的像风
野的像风 2020-12-01 13:05

My application has two activities, that I start in this order:

HOME > A > B

Now I press HOME and launch \"A\" again. I would like to

3条回答
  •  抹茶落季
    2020-12-01 13:45

    I figured out what is wrong...

    The config is right, but I started application for debugging from Eclipse, this was the issue.

    Case # 1.

    Debug > A > B > HOME > A
    Get: A (stack is cleared)
    

    Case # 2.

    Debug > A > BACK > A > B > HOME > A
    Get: B (stack preserved)
    

    Case # 3.

    A > B > HOME > A
    Get: B (stack preserved)
    

提交回复
热议问题