连笔字作品 | 连笔字知识 | 加入收藏 连笔字转换器软件可转换多种连笔字在线预览 网页版 V2.0
连笔字转换器

当前位置:连笔字网 > 知识库 >

bundle

时间:2024-03-26 21:04:40 编辑:连笔君 来源:连笔字网

java中bundle是 一种存放字符串和Parcelable类型数据的map类型的容器类,通过存放数据键(key)获取对应的各种类型的值(value),而且必须通过键(key)获取。 Bundle相当于Map类,就是一个映射,用Bundle绑定数据,便于数据处理。 //

TestBundle.java

Bundle bundle=new Bundle()//创建一个句柄 bundle.putString("name", nameinfo)//将nameinfo填充入句柄 Intent mIntent=new Intent(TestBundle.this,TestBundle_getvalue.class) mIntent.putExtras(bundle) startActivity(mIntent)

Copyright:2022-2023 连笔字转换器 www.liulisui.com All rights reserved.