2016年4月28日

Android系统中Parcelable和Serializable的区别

摘要: 进行Android开发的时候,我们都知道不能将对象的引用传给Activities或者Fragments,我们需要将这些对象放到一个Intent或者Bundle里面,然后再传递。 通过Android的API,我们知道有两种选择,即在传递对象时,需要对我们的对象进行 Parcelable 或者Seria 阅读全文

posted @ 2016-04-28 21:09 温馨家园 阅读(78) 评论(0) 推荐(0)

android SerializableParcelable的使用

摘要: 1. Parcelable接口 Interface for classes whose instances can be written to and restored from a Parcel。 Classes implementing the Parcelable interface must 阅读全文

posted @ 2016-04-28 20:43 温馨家园 阅读(86) 评论(0) 推荐(0)

导航