7

Finish Current Activity and start a new one

view full story
linux-howto

http://stackoverflow.com – I have a Fragment F. After getting result from a service, F needs to finish the activity it is in and launch a page in the web browser which I do using an intent. It does seem to work fine if the user presses the back button. However, if he launches the app from recent apps, the activity isn't finished. I have thought about otherways of doing it. Like finishing the current activity and opening the page from the parent activity. But I'll have to make a lot of changes in the flow. So that would be my last option. Is there any way to make sure that the activity is finished even when I launch it (HowTos)