Is using Android shared preferences for storing large amounts of data a good idea?

So I inherited this Android project from someone else. The code currently seems to be storing huge amounts of data (that should really belong to an SQLite database) into the shared preferences. I’m very uncomfortable with that part of the code and want to start using the sqlite database. But I am still unable to justify to myself the time it would take especially if it comes with no immediate benefits.

Of course I’m eventually going to move it to sqlite but since I’m kinda on a tight deadline I was wondering if this is worth something doing now or later.

  • How to check if an activity is the last one in the activity stack for an application?
  • Error Compiling com.squareup.retrofit:converter-simplexml:2.0.0-beta2
  • How can I add a third button to an Android Alert Dialog?
  • Map of MapFragment gets loaded with lag when returning from another activity
  • How to Play Streaming Audio/Video from a url?
  • Reading file using Cordova File Plugin
  • Any thoughts and comments on storing large amounts of data in shared preferences would be very much appreciated.

    Thanks

    Related posts:

    android, How to rename a file?
    “Please specify Android SDK” in Android Studio 0.2
    android finish current activity causes app close
    Redirecting audio / creating alternate sound paths in Android
    Is there an easier way to add gson to my project?
    SharedPreferences not being removed on user uninstalling application
  • Updating sdk got NoClassDefFoundError for zxing
  • How can WhatsApp be end-to-end encrypted when WhatsApp Web still works
  • How to prevent cheating with Gamecih?
  • How can I style an Android Switch?
  • Error while retrieving information from the server RPC:s-7:AEC-0 in Google play?
  • Programming on (not *for*) an Android device
  • One Solution collect form web for “Is using Android shared preferences for storing large amounts of data a good idea?”

    If it works now then you can definitely leave it. You are correct that the large amounts of data should go into the database. If nothing else, you’ll have an easier time of querying for data.

    Further research has found this post suggesting that you won’t have any major problems with a large amount of data in your Shared Prefs. You could, however, have performance issues since the single Shared Pref XML file will have to be read to get any pref while with a database you only have to grab what you need as you need it.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.