位置:首页> 开发 > 数据存储 > 浏览文章

Android中使用Bundle进行数据传递和存储[页17]

2023-08-23
javaBundle bundle = getIntent().getExtras();
Student student = (Student) bundle.getSerializable("student");

需要注意的是,如果要传递自定义对象,该对象必须实现Serializable或Parcelable接口。

首页 上一页 12 13 14 15 16 1718 下一页 尾页
下一篇:

相关阅读

热门推荐