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.
精彩评论