Waypoint
Waypoint

Reputation: 17753

Android - custom serialization approach

I have tried XML/JSON object serialization, but I am thinking of custom serialization. Up to now, I haven't found any solutions, which included XML/JSON solutions. Is it bad way of thinking of implementing serialization on my own? Can I get better results then ready made solutions?

thx

Upvotes: 0

Views: 204

Answers (2)

denis.solonenko
denis.solonenko

Reputation: 11775

There is a bunch of custom serialization frameworks already available - protobuf, Kryo, etc. As far as I know at least protobuf should work on Android. Here is a nice overview (not related to Android though) http://tech.puredanger.com/2011/05/27/serialization-comparison/

Upvotes: 1

Erdal
Erdal

Reputation: 1502

I think JSON is the best for communicating between client and server. Look at this for a nice example: http://developer.android.com/reference/android/util/JsonReader.html

Upvotes: 1

Related Questions