I want to send complex data from my android to a remote server via TCP-sockets. I know that I need to serialize the Objects. In Android this is done via parcelable. But this is an android specific interface and the server only knows the serializable interface. Also vice-versa android doesn’t know a serializable interface.
Both the android and the server must “know” the object but they are implemented in two different ways (server–> serializable, android –> parcelable)
How do I use these interfaces properly, so that I can send Objects via TCP to the server successfully?
We had the same issue here at work and we switched to JSON. Maybe you should consider doing the same?!
Edit: Android does know the Serializable interface. How could I forgot…