Search code examples
javaandroiddatabasesqlitestoring-data

Best option for storing data in running application in android [before SQLite]


I'm new to the android development, and programming in general.

I'm developing app to create football statistics for each player, and in the long run I'm using SQLite to store data. However I was wondering if there is a way and if it will make sense, to store data during the run of my application without inserting it to the db, every time user is trying to add new statistics.

Also I'm wondering if there is a point in doing that, my biggest concern is that inserting data to a db all the time will slow down my app, and I would appreciate what more experienced developers do know, and think about this 'issue'

I was trying to research the topic, however all I got was storing data in db, and using SharedPreferences and I don't think that's what I'm looking for, however I can be wrong.

please help.


Solution

  • SQlite is what you're looking for. SharedPreferences are for just that - preferences, not large amounts of stats.

    Put your database code in a separate thread and you won't notice any slow down in your app. Ask back here for help on this.