开发者

storing user defined object in some where in android

HELLO FREINDS ,

I am developing one android application i want to store user defind objects for fututre so how i can achieve this can a开发者_如何学Pythonnyone help me because for this small thing i dont want to use database.

plz help me Thanks &Regards pawan pathak


Check out SQLite or SharedPreferences (the latter works if you know in advance how many objects you will store, e.g. a configuration class).


If you don't want to use the database, you can Serialize them to the SD Card or the app data location.


You may serealize it and save as text file. Then when you need this object you have just to read file and deserealize it in you object. For primitive data types it's better to use Shared Preferences.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜