Implementing High Scores in Android
To implement high scores in an Android game, there are a few options- To use LocalStorage. To use a DB locally. To use a cloud based DB service, such as FireCloud. In this post I will be describing about how I have implemented highscores for my application QuizApp using LocalStorage. I will be talking about the other two in a later post. SharedPreferences is used to setup an acess to key-value pairs that can be stored locally on the device. A key needs to be supplied for identifying the StoredPreferences uniquely, here we are using myPrefsKey as the identifier. ...