I have successfully used data serialization between Android devices and servers.
I had to convert the TimeZone class to String and vice versa, because the TimeZone class in particular is not fully compatible (he tried to pass something in the sun. package sun. Which received a ClassNotFoundException on Android).
In addition, I managed to transfer objects from collections and maps java.util and from data types java.sql and, of course, types java.lang String , Integer , etc.
source share