Is there any way to check, if two buttons are clicked at the same time ? I wrote a switch-statement in the button click listeners, but I can't check when these buttons are clicked ate the same time.
Here is a my code:
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.button1:
Log.d("MR.bool", "Button1 was clicked ");
break;
case R.id.button2:
Log.d("MR.bool", "Button2 was clicked ");
break;
default:
break;
}
}