Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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