title: Disabled back button and time Handler
body: <p>I have a game quiz, and if a user's answer is wrong a popup screen pops up and stays on screen for 3 seconds. I do this with Handler. Since the game is time limited, they come up with solution to press back button to remove popup from the screen :) and move along. So I disabled the back button for that popup activity. BUT, now I have another problem. It seems that my Handler count time from the last click, so if I click back button on that popup screen Handler count time from that click. If I click it again, it starts from beggining. I've tried to click it 10-12 times and my popup screen was on for half a minute. :) And that's not good. How to make my popup be on for 3 seconds no metter if click back button or not during his time on?</p>
  
  <p>My popup class:</p>
  
  <pre><code>public class WrongAnswer extends Activity{
  
      TextView wrong;
      String correctAnswer, correct;
  
      public final int delayTime = 3000;
      private Handler myHandler = new Handler();
  
      public void onUserInteraction(){
          myHandler.removeCallbacks(closePopup);
          myHandler.postDelayed(closePopup, delayTime);
      }
      private Runnable closePopup = new Runnable(){
          public void run(){
              finish();
          }
      };
  
      @Override
      public void onBackPressed() {
          //do nothing
      }
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          // TODO Auto-generated method stub
          super.onCreate(savedInstanceState);
  
          requestWindowFeature(Window.FEATURE_NO_TITLE);
          getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
  
          setContentView(R.layout.wrong);
  
          Bundle extras = getIntent().getExtras(); 
          if(extras !=null) {
             correct = extras.getString("correctAnswer");
          }
  
          inicijalizujVarijable();
  
          myHandler.postDelayed(closePopup, delayTime);
  
              }
  
      private void inicijalizujVarijable() {
  
          wrong = (TextView) findViewById(R.id.tvWrong);
          Typeface pogresanFont = Typeface.createFromAsset(getAssets(), "Bebas.ttf");
          wrong.setTypeface(pogresanFont);
          Wrong.setText("Wrong answer!\nCorrect answer is:\n\n" + correct);
      }
      }
  </code></pre>