Why do we use the TaskStackBuilder?

后端 未结 6 593
难免孤独
难免孤独 2020-12-24 01:12

Why do we use the TaskStackBuilder when creating a notification? I do not get the logic behind it.

Can someone please explain.

public v         


        
6条回答
  •  一个人的身影
    2020-12-24 02:05

    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.

提交回复
热议问题