开发者

Serialization/deserialization possibilities

开发者 https://www.devze.com 2023-04-03 08:18 出处:网络
Wh开发者_如何学JAVAat are the possibilities in Android, when I intend to use serialization/deserialization with data? Which one serialization/deserialization solution is the best for distant serializa

Wh开发者_如何学JAVAat are the possibilities in Android, when I intend to use serialization/deserialization with data? Which one serialization/deserialization solution is the best for distant serialization/deserialization (e.g. on server)?


You can use standard Java serialization (implement Serializable interface) or serialize your data in JSON/XML form and save in files in device memory or external storage (SD card). Also you can use SQLite databases.

Parcelable is not intented to use for data storage. Read this answer.

References: http://developer.android.com/guide/topics/data/data-storage.html

0

精彩评论

暂无评论...
验证码 换一张
取 消