Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp
Last active September 16, 2023 22:36
Show Gist options
  • Save codeforfun-jp/7265b849c7587a2ebaba377988aa578a to your computer and use it in GitHub Desktop.
Save codeforfun-jp/7265b849c7587a2ebaba377988aa578a to your computer and use it in GitHub Desktop.
Android Quiz App Kotlin 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