I am in the process of (finally) writing the chapter on tasks for my book, and I am encountering a few lingering puzzles.
Things that serve as home screen launchers s
1) FLAG_ACTIVITY_RESET_TASK_IF_NEEDED
If some task is pending,than it will destroy that process and will start the activity that you requested
2) FLAG_ACTIVITY_CLEAR_TOP
If any previous intent of this activity is running,than this method will deliver the running instance of the activity,close all other activities and will start activity with previous instance.
3) FLAG_ACTIVITY_SINGLE_TOP
If recently this activity has been launched,and instance is saved,than it will not launch this activity.