title: Android onTap start Activity
body: <p>I have the following code that starts an activity after detecting an onTap event.</p>
  
  <p>Trouble is that more often than not it detects 2-3 taps from one user just pressing and so starts multiple.  Is there any way to dampen the effect and only open the once?</p>
  
  <pre><code>protected boolean onTap(int i) {
  
              Log.i("TAP","CALLED");
  
  
              myOverlayItem item =getItem(i);
  
              if (selectedName.equals(item.getTitle())){
  
  
                  try{    
                  Intent myIntent = new Intent(AppMain.this, DetailActivity.class);
                  myIntent.putExtra( "int", i);
                  myIntent.putExtra( "string", selectedName );
                  AppMain.this.startActivity(myIntent);
                  }catch (Exception e){
                      Log.e("Error", "Cannot launch", e);
                  }
              }
  }
  </code></pre>
  
  <p>Thanks!</p>