开发者

How do I make a strict sequence of Activities for an Android app?

I have two Activities (A and B). When I quit the app on my device and come back, it starts activity B instead of A. When I press the back button it backs out to the home screen. 开发者_如何学JAVAAny thoughts on how to fix this?


Is it posible that the App is running in the Background after you "killing" it. In this case the context of the App is saved. It is only in standby.

How is it, when you kill the App with the TAskManager and restart it. Will Activity A appear?

__

Eventually the Problem can be solved if you start Activity B with startActivityForResult.

Activity A ---> startActivityForResult ---> Activity B

When you finish B with resultOK then the next time Activity A must appear.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜