Reputation: 1
HELLO FREINDS ,
I am developing one android application i want to store user defind objects for fututre so how i can achieve this can anyone help me because for this small thing i dont want to use database.
plz help me Thanks &Regards pawan pathak
Upvotes: 0
Views: 85
Reputation: 5900
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.
Upvotes: 0
Reputation: 13960
Check out SQLite or SharedPreferences (the latter works if you know in advance how many objects you will store, e.g. a configuration class).
Upvotes: 1