Reputation: 1809
In my application activity A calls activity B. In activity B I press home button. and after sometime application is killed. But when I open my app again it opens B instead of activity A even though application is killed before.
Upvotes: 2
Views: 460
Reputation: 11191
Normally when you press home button your current activity is not killed by os. To solve you problem place this
android:noHistory="true"
in manifest file in your Activity B tag. Your activity won't be remembered and when you run your application next time, it will bring you to Activity A
Upvotes: 1