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
You can use following code: btn.setEnabled(false);
btn.setOnclickListener(new View.onClickListener(){ public void onClick(View v) { btn.setEnabled(false); } });