title: How to resolve double tap on Button Issue in android?
body: <p><strong>Mockup of my Application :</strong></p>
  
  <p><img src="https://i.stack.imgur.com/zo1tm.png" alt="Double Tap Mockup"></p>
  
  <hr>
  
  <p><strong>Problem :</strong></p>
  
  <p>When click on <strong>button1</strong> it just call <strong>Intent</strong> of <strong>ActivitySecond</strong> </p>
  
  <pre><code>button1.setOnClickListener(this);
  
  public void onClick(View v) {
  // TODO Auto-generated method stub
       switch (v.getId()) 
       {
            case R.id.button1:
                  Intent intent = new Intent(getApplicationContext(), ActivitySecond.class);
                  startActivity(intent);
                  break;
            default:
                  break;
       }
  }
  </code></pre>
  
  <p>But, on Double tap it open <strong>twice</strong> ActivitySecond.</p>
  
  <hr>
  
  <p>HOW TO RESOLVE IT.</p>
  
  <p>PLEASE IF ANY SOLUTION THEN SHARE IT.</p>
  
  <p>Thank you.</p>