Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp
Created October 24, 2024 06:50
Show Gist options
  • Select an option

  • Save codeforfun-jp/912a342baf91ced0ba89bc587c6f3a02 to your computer and use it in GitHub Desktop.

Select an option

Save codeforfun-jp/912a342baf91ced0ba89bc587c6f3a02 to your computer and use it in GitHub Desktop.
[Kotlin Quiz ver2] 7-2
private fun checkQuizCount() {
if (quizCount == QUIZ_COUNT) {
// 結果画面を表示
val intent = Intent(this@MainActivity, ResultActivity::class.java)
intent.putExtra("RIGHT_ANSWER_COUNT", rightAnswerCount)
startActivity(intent)
} else {
quizCount++
showNextQuiz()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment