On Feb 4, 2013, at 11:20 PM, craig <craigr...@gmail.com> wrote:
> I have a complex class and need to save state when activity/fragment is 
> destroyed and recreated.
> 
> Is this the best alternative in terms of simplicity and performance?

_Some_ form of serialization is sane, whether that be binary, XML, JSON, or 
whatever. IParcelable should be considered "for compatibility only".

However, do you need serialization? You may be able to "just" store your 
instance state into a static ("global") variable "somewhere", then look it up 
later. This would avoid the need to serialize entirely, though you'll need some 
mechanism to allow such data to be collectable...

 - Jon

_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to