0

Recently I discover on how to use SharedPreferences and I find it extremely easy passing data between activities with it. But I'm curious of its drawback. At one point I stumbled upon this post saying that it's not good to abuse SharedPreferences if the data is big but I don't really understand what to extend big is.

Let say, my application retrieves some list of string using API such as user basic details, and user preferences. Is it advisable to use SharedPreferences to pass around these details? or I should just use some kind of database to handle all my retrieved data?

Cœur
  • 37,241
  • 25
  • 195
  • 267
azriebakri
  • 1,131
  • 2
  • 11
  • 36
  • "retrieves some list of string using AP", for this use SQLite, and by small data means, key values, its good to save only small data, and states in shared prefernces – Abdul Kawee May 16 '17 at 07:14
  • I would store user preferences in SharedPreferences. This can be easily done with key-value pairs. But when you retrieve something from an API and it's more complex I'd recommend to use SQLite. – Denny May 16 '17 at 07:18

0 Answers0