Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp
Created November 3, 2020 13:26
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/3a8511252f803604d669fae741986100 to your computer and use it in GitHub Desktop.
Save codeforfun-jp/3a8511252f803604d669fae741986100 to your computer and use it in GitHub Desktop.
QuizApp 4.1
builder.setPositiveButton("OK", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
if (quizCount == QUIZ_COUNT) {
// 結果画面へ移動
Intent intent = new Intent(MainActivity.this, ResultActivity.class);
intent.putExtra("RIGHT_ANSWER_COUNT", rightAnswerCount);
startActivity(intent);
} else {
quizCount++;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment