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()
DO this way
new CountDownTimer(700, 100) { public void onTick(long millisUntilFinished) { } public void onFinish() { runOnUiThread(new Runnable() { @Override public void run() { dialog.dismiss(); //this is line 36 } }); } }.start();