0

I am familiar with using taskStackBuilder that it keeps a fake backstack of your activities but i was wondering one thing that we can obtain this behavior by calling startActivity() again and again as per our requirement, then why should we use taskStackBuilder ?

  • Because it's better, and doesn't suffer from the problems that might happen when sequentially calling `startActivity()` when opening the app in the middle of some flow. "Opening the app" as in "starting the app from scratch" – Shark Dec 06 '19 at 12:32
  • another example: https://stackoverflow.com/questions/36912325/why-do-we-use-the-taskstackbuilder – Shark Dec 06 '19 at 12:36
  • make sense, right – Farukh Tariq Dec 08 '19 at 14:12

0 Answers0