How to make Android touch and hold the process again

Possible duplicate:
Android long-touch event

See screenshot:

enter image description here

Standard deal. Two buttons and TextView. I handle OnClick for the button and the value goes up / down, everything works fine.

It would be even better if I could code "OnPressAndHold" and update the interface with incremental time intervals. Like TimePicker, when you press and hold it, the values ​​will increase / decrease repeatedly. Any pointers?

+4
source share

All Articles