I'm trying to get the events when a button is pressed and then again when it is released (and calculate the time between the two events) but I can't find where this is possible. If you are confused what I am asking, imagine pushing the button for a hot air balloon. You can press it for a short time or press it and hold it for a longer time to get more hot air.
I was looking at the pizza timer tutorial, which doesn't have button press and release events, only the direction pad (up, down, left, right) that confused me.
Then I looked at the Button used in the Android notepad tutorials, but that doesn't seem to be what I want, either... I can push and hold the button and it stays pressed, and it becomes un-pressed when I let go, but I want to trigger an event when that happens.
Before I post this question, I did notice that there is onKeyUp as well as onKeyDown, but I want to have this for an on-screen button, not for a physical button on the device (not now, at least). Also, I'm not sure if this method will work (but I hope it does).
Edit some more: I want to have an event triggered when the on-screen button is pressed (easy) and another event when the button is released. Is this possible? Does this exist already?