I recently wrote a small app for tracking my workouts and the app crashed for some reason. When I opened it again all of my data, which had been stored in shared preferences, was lost. It's been working fine for about a month and only just now has it had this problem.
So under what circumstances might shared preferences get deleted? Is there a better option for saving data easily so that I can avoid this in the future?