NavUtils当中navigateUpTo和shouldUpRecreateTask
来源:互联网 发布:淘宝8.8元电影票教程 编辑:程序博客网 时间:2024/05/22 02:46
public static void navigateUpTo (Activity sourceActivity, Intent upIntent)
Navigate from sourceActivity to the activity specified by upIntent, finishing sourceActivity in the process. upIntent will have the flag FLAG_ACTIVITY_CLEAR_TOP
set by this method, along with any others required for proper up navigation as outlined in the Android Design Guide.
This method should be used when performing up navigation from within the same task as the destination. If up navigation should cross tasks in some cases, see shouldUpRecreateTask(Activity, Intent)
.
Parameters
public static boolean shouldUpRecreateTask (Activity sourceActivity, Intent targetIntent)
Returns true if sourceActivity should recreate the task when navigating 'up' by using targetIntent.
If this method returns false the app can trivially call navigateUpTo(Activity, Intent)
using the same parameters to correctly perform up navigation. If this method returns false, the app should synthesize a new task stack by using TaskStackBuilder
or another similar mechanism to perform up navigation.
Parameters
Returns
- true if navigating up should recreate a new task stack, false if the same task should be used for the destination
- NavUtils当中navigateUpTo和shouldUpRecreateTask
- java当中类和对象
- android studio 返回键 NavUtils.navigateUpFromSameTask(this);
- JS 当中的 apply 和 call
- [Ubuntu]: Ubuntu当中开启和禁用root
- servlet和jsp当中的编码设置
- java当中的包和访问权限
- php当中双引号和二维数组问题
- Scrum meeting当中的“鸡”和“猪”
- Java当中的基本概念和环境搭建
- python当中的类和模块
- Java当中Error和exception的区别
- Android当中用到的Log和Toast
- java35java当中内部类和匿名类
- 项目当中的理性主义和实证主义
- import android.support.v4.app.NavUtils错误无法编译问题
- 【转载】倾斜摄影当中模型精度和测绘当中的分辨率/比例尺是怎么回事?
- 善用Axapta当中的exists join和inner join
- shell脚本中判断进程是否存在
- Search in Rotated Sorted Array I II
- 深入理解进程(一)
- 从命令行运行自动测试MSTest\ VSTest.Console.exe\ TCM.exe
- Jenkins01环境搭建
- NavUtils当中navigateUpTo和shouldUpRecreateTask
- cocos2dx粒子系统
- pgsi
- STL deque的emplace方法(12)
- android记录点击次数
- trap捕捉信号学习
- 从命令行使用 MSTest 运行自动测试
- DNS原理及其解析过程【精彩剖析】
- P2P平台:第三方支付不等于第三方资金托管