-
-
Save codingwithsara/b7454caa04ba1f8e5e5e45771168f80a to your computer and use it in GitHub Desktop.
7-4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// トータルスコアを保存 | |
SharedPreferences.Editor editor = prefs.edit(); | |
editor.putInt("totalScore", totalScore); | |
editor.apply(); | |
} | |
public void returnTop(View view) { | |
Intent intent = new Intent(getApplicationContext(), MainActivity.class); | |
startActivity(intent); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment