Reputation: 17753
is there any way how to be able to serialize object in .NET and deserialize it in Android APK? I have tried WOX, but it is available only for pure Java (Android misses some imports). Is could be some custom serialization, but how to write it?
Thanks
Upvotes: 1
Views: 421
Reputation: 26184
I don't know .NET but I'm sure there is a way to serialize .NET objects to JSON, just googled this: http://json.codeplex.com/ There are also libs for JSON for Android. Here is an example of parsing a JSON object on Android: http://www.androidcompetencycenter.com/2009/10/json-parsing-in-android/
Upvotes: 1
Reputation: 44605
Your best option is XML serialization. Takes more space than binary but being open you can do all you need to do on the Android side.
Upvotes: 1