-
-
Save codeforfun-jp/7265b849c7587a2ebaba377988aa578a to your computer and use it in GitHub Desktop.
Android Quiz App Kotlin 7-2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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