tags:

views:

26

answers:

0

I have an Android application that doesn't load in the Launcher. Instead a 3rd party application (i'll call App A) will load my app Activity A through a service (account manager service to be exact) and then the user navigates to Activity B. Then the user clicks the Home button. The user then clicks on another 3rd party app (i'll call App B) that will then load my app Activity B. Both Activity A and B get started with the intent flag FLAG_ACTIVITY_NEW_TASK. But when the user who is now on Activity B clicks the back button, instead of going to App B, they get the get Activity B loaded again and then another back click they get Activity A and then can click back one more time to load App B. How can I get the other task to finish() when a new instance of Activity B is started?