launchMode,通俗点说,就是定义了Activity应该如何被launch的.那么这几种模式的区别以及应用场景,会有何不同呢?谷歌是基于什么原因设计这几种模式的呢?这几种模式背后的工作原理是什么呢? 1. 任务和返回栈 在讲解launchMode之前,先说说任务(Task)和返回栈(Back Stack,有些译作回退栈.任务栈)这两个概念. A task is a collection of activities that users interact with when performi…
android:launchMode An instruction on how the activity should be launched. There are four modes that work in conjunction with activity flags (FLAG_ACTIVITY_* constants) in Intent objects to determine what should happen when the activity is called upon…