Why do we use the TaskStackBuilder when creating a notification? I do not get the logic behind it.
Can someone please explain.
public v
We use a TaskStackBuilder to make sure that the back button will play nicely when the activity gets started. The TaskStackBuilder allows you to access the history of activities used by the back button. Basically, we use it when we want the user to navigate to another activity after pressing back button.