Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp
Created November 3, 2020 22:03
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/3d77ff789c2402c9d3a612a00dd8e7f5 to your computer and use it in GitHub Desktop.
Save codeforfun-jp/3d77ff789c2402c9d3a612a00dd8e7f5 to your computer and use it in GitHub Desktop.
QuizApp 4.1
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_result);
TextView resultLabel = findViewById(R.id.resultLabel);
int score = getIntent().getIntExtra("RIGHT_ANSWER_COUNT", 0);
resultLabel.setText(getString(R.string.result_score, score));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment