Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

How to serialize list of custom objects for instance state?

I've got a generic list as data source for my activity. Now I want to save this list in instance state.

In native Android applications this can be done very easily - just let my custom model implement Serializable - as the generic ArrayList implements Serializable too, I can use


to save it to instance state.

The List<T> in Xamarin doesn't implement Java.IO.ISerializable. So how to put my list in instance state here?

Best Answer


Sign In or Register to comment.