当前位置:   article > 正文

Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED参数详解

flag_activity_reset_task_if_needed

Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED 参数详解

    /**
     * If set, and this activity is either being started in a new task or
     * bringing to the top an existing task, then it will be launched as
     * the front door of the task.  This will result in the application of
     * any affinities needed to have that task in the proper state (either
     * moving activities to or from it), or simply resetting that task to
     * its initial state if needed.
     */
    public static final int FLAG_ACTIVITY_RESET_TASK_IF_NEEDED = 0x00200000;
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

翻译:如果设置了该参数,activity从新的任务栈启动或者是从已经存在的任务栈中推到栈顶,activity都将作为栈顶界面显示,这将导致应用的

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/308532
推荐阅读
相关标签
  

闽ICP备14008679号