Check out the blog post: https://goo.gl/nm5yjz
If every Activity in your app is part of a task, it makes sense to know what a task is (a stack of activities) and how the default behavior of the back button affects your Activity and Fragments you’ve added with FragmentTransaction’s addToBackStack() method.
Ian Lake also explains why SINGLE_TOP is a useful launchMode for your Activity and how to work with notifications that deep link into your app by using TaskStackBuilder: http://goo.gl/rWFOwT
Read through all the documentation at http://goo.gl/KEBnbO
#BuildBetterApps #AndroidN #lifecycle
Subscribe to the Android Developers channel at http://goo.gl/GEh1ds
source