IdleSun's Weblog

July 1, 2011

Android Parcelable Example 1 – boolean and enum

Filed under: Android,Java,Uncategorized — idlesun @ 6:44 pm
Tags: , , ,


This post has been moved to my new blog.




  1. cool.
    how to handler statution like another class objoct in the MyData class?

    Comment by HenryWu — July 14, 2011 @ 2:03 am | Reply

    • Thanks for the comment. Please take a look at my next post, Parcelable Example 2.

      Comment by idlesun — July 15, 2011 @ 7:49 pm | Reply

  2. Good example! It helped me 🙂 Would you know how to store a 2D String array in a parcelable type?

    Comment by Thomas — June 8, 2012 @ 3:17 am | Reply

    • I wonder if you have taken a look at my second post that shows how to handle lists. You can extend that example to 2D in case 2D array is implemented as List<List>. Or, you can also loop through your 2D list in readFromParcel() and writeFromParcle() methods using readString() and writeString() respectively.

      Comment by idlesun — June 9, 2012 @ 7:47 pm | 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: