Intent中putExtra()方法用法
来源:互联网 发布:寻找客户的软件 编辑:程序博客网 时间:2024/05/01 16:58
有3个Activity 分别是A,B,C
A里面Intent 首先 putExtra("1","1");putExtra("2","2");setclass(A.this,B.class);
C里面的Intent 能收到这3个键值吗?
从A-->B 新建一个intent 获取从A到B的intent,这个intent中保存了1,2的值;
final Intent getIntent=getIntent();
从B-->C 新建一个intent 把1,2的值添加进去
Intent intent=new Intent();
intent.putExtra("3", "3");
intent.putExtra("1",getIntent.getStringExtra("1"));
intent.putExtra("2",getIntent.getStringExtra("2"));
在B中有两个intent
这样C里就能接受3个值了
从B-->C 新建一个intent 把1,2的值添加进去
Intent intent=new Intent();
intent.putExtra("3", "3");
intent.putExtra("1",getIntent.getStringExtra("1"));
intent.putExtra("2",getIntent.getStringExtra("2"));
在B中有两个intent
这样C里就能接受3个值了
- Intent中putExtra()方法用法
- Intent中putExtra()方法用法
- intent.putExtra()方法
- intent.putExtra()方法参数
- 【转】intent.putextra的用法
- Android 中Intent的putExtra()方法的值传递
- intent.putExtra()方法参数详解
- intent.putExtra()方法参数详解
- intent.putExtra()方法参数详解
- intent.putExtra()方法参数详解
- intent.putExtra()方法参数详解
- intent.putExtra()方法参数详解
- intent.putExtra()方法参数详解
- intent.putExtra()方法参数详解
- intent.putExtra()方法参数详解
- intent.putExtra()方法参数详解
- intent.putExtra()方法参数详解
- intent.putExtra()方法参数详解
- PHP 从数据库Mysql中读取数据生成excel(解决乱码问题,解决中文变问号问题)
- 每天记录点学会的知识~1234全排列模版
- mongodb的记录
- 文字列を判断するクラス
- Android: R cannot be resolved to a variable
- Intent中putExtra()方法用法
- 菜鸟从零开始的第一个应用上线记(一)
- dfsdf
- 数字の書式を変換するクラス
- 随机函数 rand()
- opencv2.4.0 + vc express 2008 配置
- C++学习方法
- mysql创建定时任务
- 修改时清除字段内容的SQL语句