SharedPreferences or SQlite

后端 未结 4 745
Happy的楠姐
Happy的楠姐 2021-01-20 15:51

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

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-20 16:47

    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.

提交回复
热议问题