Android parcelable serialization

Source: Internet
Author: User

 

Experience is constantly accumulating small knowledge.

Parcelable is not recommended, but serialization is not recommended to transmit data between activities.
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
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

 

Available for ReferenceArticle:

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.