Best way to make nested custom objects parcelable in Android -


there lot of information out there concerning parcelable in android. after looking around, couldn't find nice solution problem.

so, need create class (let's call "myclass") extends custom class else wrote ("hisclass"). there many instance variables in hisclass, of objects of custom classes, themselves. want pass myclass object 1 activity , realize, need make parcelable. instance variables custom objects?

reading this, think need make every single custom object implement parcelable. since, there many custom objects in myclass , hisclass again have custom objects instance variables, doing seems bad solution me.

is there better way? maybe, being totally blind here. hope can me.

well, can make use of serializer, result in slow performance. afaik, implementing parcelable best way passing data. additionally, don't try complicate creating complex data structure pass using intent.

either use parcelable cheap/light-weight/less-in-amount or else output files...and passing paths.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -