Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Android Lists and Adapters (2015) Using Parcelable Data Parceling Data

Didn't get this Parcelable! :(

Hello.

That starting to be really really confusing i didn't get this Parcelable thing and what it doing please help me understand this!

David Tran
David Tran
Courses Plus Student 12,429 Points

I think it may be better explained in future classes? I'm new to this too.

But from what I understand: in Android, we can't pass objects to activities because of the way "activities are created and destroyed". The solution is to serialize the data. Android provides a "Parcelable" interface to do this. The way I think of it, serializing data is translating data from one state to another state so something else can read and use this data on the other side.

Hello David thank you very much for the answer i think it now clear to me :)

1 Answer