摘自帮助文档: Sometimes you want to get a result back from an activity when it ends. For example, you may start an activity that lets the user pick a person in a list of contacts; when it ends, it return
Android Bundle Bundle相当于Map类,就是一个映射,用Bundle绑定数据,便于数据处理. //first activity Bundle bundle = new Bundle();//创建一个句柄 bundle.putString("name", nameinfo);//将nameinfo天填充入句柄 Intent mIntent
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号