intent传递字符串数组
来源:互联网 发布:阿里云退款 编辑:程序博客网 时间:2024/06/16 01:38
传递:
Bundle b=new Bundle();
b.putStringArray(key, new String[]{value1, value2});
Intent i=new Intent(context, Class);
i.putExtras(b);
eg:
Intent intent = new Intent();
intent.setClass(VideoActivity.this, PlayActivity.class);
Bundle bundle=new Bundle();
bundle.putStringArray("video", videolist);
intent.putExtras(bundle);
startActivity(intent);
接受:
Bundle b=this.getIntent().getExtras();
String[] array=b.getStringArray(key);
eg:
Intent intent = this.getIntent();
bundle = intent.getExtras();
videolist = bundle.getStringArray("video");
0 0
- intent传递字符串数组
- intent传递字符串数组
- intent传递字符串数组
- intent传递数组
- intent传递数组
- Intent 传递 数组
- 【Android】Intent传递对象数组
- Intent 传递数据,bundle 传递数组
- Intent 传递数据,bundle 传递数组
- Intent 传递数据,bundle 传递数组
- Intent 传递数据,bundle 传递数组
- 传递自动化字符串数组
- Android---Intent传递对象、对象数组
- intent借助parcelable接口传递对象数组
- Android 开发-Intent传递普通字符串
- 15.2.2.5 传递字符串数组
- 关于DCOM传递字符串数组!!
- JAVA->JNI 传递字符串数组
- 如何在屏幕上显示多个alv
- C# WebRequest WebClient Post请求Demo
- iOS下载文件之NSData -UIImage
- POJ 3107 Godfather (树的重心)
- 应用宝认领
- intent传递字符串数组
- 看代码中遇到的难点
- iOS开发系列--音频播放、录音、视频播放、拍照、视频录制
- 关于类似Gmail邮件撤销功能实现初探
- android mqtt运用
- 深入理解javascript之原型
- vim常用命令
- 系统重装故障解决方案
- iOS单列设计模式-常用的如下