Skip to content Skip to sidebar Skip to footer

Sqlite Or Shared Preferences

In my android app I receive data as json like this: '_playLists':[{'name':'Playlist 1', 'items':[{'name':'Poza 1','target':'...','url':'...','url_thumb':'...'}, {'nam

Solution 1:

If there is no security concern with data, data is complex type and data is in large amount I think SQLite is the best for it.

And if the data is small, data is premitive type and you don't want to share it with user then SharedPreference is good.

Choice is yours.. Thanks.

Solution 2:

both have different purposes .

for small sized primitive data's where you don't want to invoke any queries use shared preferences .

for large sized , complex type storage , use sqLite

Post a Comment for "Sqlite Or Shared Preferences"