Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp
Created June 9, 2021 01:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeforfun-jp/f8831c12846d3353e91d94db5b4997f4 to your computer and use it in GitHub Desktop.
Save codeforfun-jp/f8831c12846d3353e91d94db5b4997f4 to your computer and use it in GitHub Desktop.
CTB 8-2
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_result);
TextView scoreLabel = findViewById(R.id.scoreLabel);
TextView highScoreLabel = findViewById(R.id.highScoreLabel);
int score = getIntent().getIntExtra("SCORE", 0);
scoreLabel.setText(score + "");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment