android hasExtra的用法
来源:互联网 发布:2016年7月非农数据 编辑:程序博客网 时间:2024/06/01 15:04
public boolean hasExtra (String name)
Added in API level 1
Returns true if an extra value is associated with the given name.
Parameters
Returns
- true if the given extra is present.
Intent intent = getIntent();Log.i("TAG1", intent.hasExtra("x") + "");Log.i("TAG1", intent.hasExtra("y") + "");Log.i("TAG1", intent.hasExtra("z") + "");个人理解是判断intent传值过来是否包含上一个页面的key值
文档解释
0 0
- android hasExtra的用法
- android :intent.hasExtra的含义
- Android.mk的用法
- Android:layout_weight的用法
- Android的JNI用法
- Android Dialog的用法
- android-Toast的用法
- Android AsyncTask的用法
- Android Handler的用法
- android PopupWindow的用法
- Android的monkey用法
- Android的merge用法
- android Preference 的用法
- Android Service的用法
- android notification 的用法
- android notification的用法
- android uri的用法
- Android DownloadManager的用法
- Spring 声明式事务,propagation属性列表
- Eclipse使用EGit管理git@OSC项目
- Eclipse SVN插件 subclipse 安装与使用
- POJ 2446 Chessboard(二分图最大匹配)
- Storm实战常见问题及解决方案
- android hasExtra的用法
- Linux下查进程,杀死进程,和重启进程
- Redis介绍及常用命令
- 二三层转发原理
- 北京游戏排行
- 一致性哈希算法
- POJ 1543
- json字符串转字典,字典转json字符串
- jsp:EL之$(pageContext.request.contextPath)和$(requestScope.contextPath)区别