So I\'ve activity called GameActivity.java and in this activity I call DialogAnswer.show() which simple shows some picture on screen.
GameActivity.java
DialogAnswer.show()
Use a try statement.
new CountDownTimer(700, 100) { public void onTick(long millisUntilFinished) { } public void onFinish() { try { dialog.dismiss(); dialog = null; } catch (Exception e) { //TODO: Fill in exception } } }.start();