how to vibrate with one click on a button, and do something else with 2 fast clicks on android
<p>Hy all!
I want to do the following: in my activity I would like to vibrate if I click once on a button, and do something else (for example closing the window with the button "close") if I click twice on it. I'm thinking of measuring the time between 2 clicks on a button and if it's less than a given intervall, then doing the given function, but I don't know how can I do that, and it may be too complicated. I implemented the OnFocusChangeListener of the button after setting the focusable false, and it can vibrate, but I don't have the solution of double click.
thanks for the incoming answers:
Geri</p>
