首页 > 系统 > Android > 正文

Android中Intent传递 对象 的两种方法(Serializable,Parcelable) .

2019-11-09 13:46:36
字体:
来源:转载
供稿:网友

转http://blog.csdn.net/xyz_lmn/article/details/5908355

这篇博客写的非常的细

Android中Intent中如何传递对象,就我目前所知道的有两种方法,一种是Bundle.putSerializable(Key,Object);另一种是Bundle.putParcelable(Key, Object);当然这些Object是有一定的条件的,前者是实现了Serializable接口,而后者是实现了Parcelable接口

 


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表