Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
7-2
@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(score + " / 5");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.