This post has been moved to my new blog.
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
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
Your example saved me! Thanks. I’ve linked your article to my question at http://stackoverflow.com/questions/9406188/liststring-readstringarray-in-parcelable/9408673#9408673
Hope you don’t mind
Comment by dsav — February 24, 2012 @ 9:50 pm
Cool, but that is important one comment: The List like Item cannot be Serializable.
Comment by Marcelo Mariano — September 8, 2012 @ 5:28 am
RSS feed for comments on this post. TrackBack URI
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
You are commenting using your Google+ account. ( Log Out / Change )
Connecting to %s
Notify me of follow-up comments via email.
The Rubric Theme. Blog at WordPress.com.
Get every new post delivered to your Inbox.