I am writing a minesweeper application in android. It's got 3 difficulty modes and I want to save all the scores of all three difficulty modes. If I wanted to store just the high scores for all the modes, I could have done it with a SharedPreferences object but I want to store all the scores and display them to the player sorted by the time taken to solve or date on which it is solved.
I have thought of saving data in a file, or in a json file. I don't want to use SQLite databases because it's too much code.
I simply want to know if there is a better way to do this other than saving everything in a file (maybe in the assets).
There is a similar question but I don't think the accepted solution can be used to solve my problem.
You can use Firebase Database for that. The good thing with the database is that if you want your game to also display the leaderboards to others who are playing it, it shows in real-time. Simply add data when the game ends and filter the results based on the data. Hope this helped, heres a link to get you started here