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. Any thoughts on how to fix this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.