If i click fast to my button in my Android app, it seems that code behind it runs twice. If i click my menu button twice the activity that has to be launch onclick just star
Button.setOnClickListener(new View.OnClickListener { @Override public void onClick(final View v) { v.setEnabled(false); v.postDelayed(new Runnable() { @Override public void run() { v.setEnabled(true); } },150); //150 is in milliseconds } });