赞
踩
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;
翻译:如果设置了该参数,activity从新的任务栈启动或者是从已经存在的任务栈中推到栈顶,activity都将作为栈顶界面显示,这将导致应用的
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。