How to detect on long key press release in Android : <p>I am trying to implement a code that does something like a Joystick.</p>

<p>For an example when i press the LED on button, the LED stays on till i keep holding the LED on button and goes off when i release the button.</p>

<p>So how do i get the onRelease event when the user releases the software button. </p>
