Hello,
I'm fairly new to Android. As one of my first applications (other than Hello World), I've been developing an application that counts how many times you've pressed a button. That's all. I've managed to do this, but now I want to autosave the amount of button presses on exit. So what I'm trying to do is make sure that when the application is closed, the amount of button presses is saved, so you start with that number on the next startup. I've heard something about using SharedPreferences, but I'm having trouble finding out how to implement this. It would be a tremendous help if any of you could help me out with this.



