IdleSun's Weblog

July 15, 2011

Android Parcelable Example 2 – Sub-object and List

Filed under: Android,Java — idlesun @ 7:48 pm
Tags: , , , , ,


This post has been moved to my new blog.




  1. Hey, I’m searching for ideas for coding parcelables with inheritance relations. Looking forward to seeing more info

    Comment by bavetta — July 19, 2011 @ 7:35 pm | Reply

    • Hi, Thanks for the comment. I will post an example soon. But the basic idea is quite simple. It just need a proper chain of parceling between super and sub. So try adding super.writeToPacel() and super.readFromParcel() method calls in the beginning of sub classes’ methods respectively.

      Comment by idlesun — July 20, 2011 @ 3:58 am | Reply

  2. Your example saved me! Thanks. I’ve linked your article to my question at

    Hope you don’t mind

    Comment by dsav — February 24, 2012 @ 9:50 pm | Reply

  3. Cool, but that is important one comment: The List like Item cannot be Serializable.

    Comment by Marcelo Mariano — September 8, 2012 @ 5:28 am | Reply

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Create a free website or blog at

%d bloggers like this: