I have an android app with links (made by linkify) that lead into other screens of my app. I’m wondering what’s the best approach to close all of the ‘child’ activities and go back to the first activity that was originally launched.
in otherwords something like this:
HomeScreenActivity => Screen1 (via Linkify-link) => Screen2 => Screen3 => click home => (close screens 1, 2 & 3) => HomeScreenActivity
You should be able to accomplish this by creating an intent for your HomeScreenActivity with the FLAG_ACTIVITY_CLEAR_TOP flag.