Return to site

Download save data suikoden 1 android

broken image
broken image

HomeScoreBytes = (byte) (homeScore > 16) //lines, because I've never seen aįileOutputStream outputStream = getApplicationContext().openFileOutput(FILENAME, Context.MODE_PRIVATE) HomeScoreBytes = (byte) (homeScore > 8) //you can probably skip these two However, the process can be trickier because everything will be stored as bytes, and that means you have to be careful to keep your read and write processes working together. You can store anything you want to a file, so this gives you more flexibility. This, in my opinion, is what you might be looking for. Int homeScore = settings.getInt('homeScore', 0) SharedPreferences settings = getApplicationContext().getSharedPreferences(PREFS_NAME, 0)

broken image

SharedPreferences.Editor editor = settings.edit() Įditor.putInt('homeScore', YOUR_HOME_SCORE)

broken image

This means that you give a value a name, say, 'homeScore' and store the value to this key. This is a framework unique to Android that allows you to store primitive values (such as int, boolean, and String, although strictly speaking String isn't a primitive) in a key-value framework. You have two options, and I'll leave selection up to you.

broken image