Android Parcelable Serialization

来源:互联网 发布:java大数据书籍推荐 编辑:程序博客网 时间:2024/04/27 22:11

 

经验就是这么不断总结小知识积累下来的。

不推荐使用Parcelable ,更不推荐用Serialization在Activity间传递数据
why is Android not using the built-in Java serialization mechanism? It turns out that the Android team came to the conclusion that the serialization in Java is far too slow to satisfy Android’s interprocess-communication requirements. So the team built the Parcelable solution.
the Parcelable is not meant to be passed to an activity. If you want to start an activity and pass it some data, use a bundle. Parcelable is meant to be used only as part of an AIDL definition.
http://stackoverflow.com/questions/5550670/benefit-of-using-parcelable-instead-of-serializing-object

 

可以供参考的文章:

1.http://www.byywee.com/page/M0/S611/611497.html

2.http://www.cnblogs.com/fwycmengsoft/archive/2011/11/10/2244459.html

3.http://blog.csdn.net/android_tutor/article/details/5740845

原创粉丝点击