Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to save my multiple lists of URIs to SharedPreferences?

 
L Vasquez
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd like to be able to fetch my lists of URIs when the user comes back to the activity or even kills the app. I believe SharedPreferences is the way to go about this but I can't find a good example as to how to actually implement this. Can anybody share some guidance on how to save/fetch these lists? Please be specific (i.e. do I add something to onCreate? or make a method on its own)
 
Norm Radder
Bartender
Posts: 1526
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found good examples in the Android doc: https://developer.android.com/guide/topics/data/data-storage.html#pref
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic