I want to use a timer between the event, for example: the user will have to wait for 30 clicks on the button How can I do this ?!
find button b = (button) VVBIID (R. button1); B.setOnClickListener (New OnClickListener () {@Override Click Public Zero (see V) {}});
Do you mean the button should be clickable in every 30 seconds? In that case, I will do something like this:
Click Public Zero (see V) {Long time = System. Systems Current time value (); If (time> gt = finalclick + (30 * 1000) || final clink time == 0) {lastClickTime = time; ...}}
No comments:
Post a Comment