Android default launchMode of LAUNCHER activity?

后端 未结 5 982
礼貌的吻别
礼貌的吻别 2021-02-18 23:07

does the launchMode of the launcher activity in the manifest get ignored? The android documentation says that the default

5条回答
  •  爱一瞬间的悲伤
    2021-02-18 23:52

    You are right.The default mode is "standard".

    According to android documentation

    *In standard mode ,Every time there's a new intent for a "standard" activity, a new instance of the class is created to respond to that intent. Each instance handles a single intent.

    *.If the parent activity has launch mode standard (and the up intent does not contain FLAG_ACTIVITY_CLEAR_TOP), the current activity and its parent are both popped off the stack, and a new instance of the parent activity is created to receive the navigation intent.

提交回复
热议问题