Reputation: 9747
I'm developing an Android AppWidget which displays a short text inputted from the configuration activity. I'm a bit confused when it's comes to storing the data, should I use sharedpreferences or SQlite Database?
Thanks
Upvotes: 3
Views: 1308
Reputation: 12642
It totally depend on your data, which you want to store.
sharedpreferences
Sqlite
Upvotes: 4
Reputation: 1844
Depends on the data you're planning to store. If it's quite simple, sharedPreferences would do the job. If it's more complicated use DB.
Upvotes: 0
Reputation: 6862
It depends on the data you want to store. With sharedPreferences you can store name - value data, with sqlite you have all the power of a relational database.
I'd say it depends on the amount of data and on the kind of query you need to perform on that.
Upvotes: 0