开发者

Android internal storage

开发者 https://www.devze.com 2023-02-02 13:17 出处:网络
I need to store an object in pho开发者_运维问答ne internal memory, how can I do this in Android. Hope you find this blog useful.

I need to store an object in pho开发者_运维问答ne internal memory, how can I do this in Android.


Hope you find this blog useful.

http://pierrchen.blogspot.com/2011/11/android-storage.html


Please give more details about what you mean when you say an object? do you mean some a file ? in case you want to save some files in the internal storage http://developer.android.com/guide/topics/data/data-storage.html#filesInternal


To store data refer Data Storage
In order to store a object in SharedPreferences, you need to make that object class as parcable by implementing Parcelable


Implement the serializable on your object and write that object to a file on external storage media. More info visit http://developer.android.com/guide/topics/data/data-storage.html#filesExternal

0

精彩评论

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

关注公众号