On Thu, Apr 29, 2010 at 7:58 PM, ls02 <[email protected]> wrote: > I need to catch event when a key is held down, not pressed down and but > held for some time, equivalent to long click but for the key. >
I haven't done anything with key handling and what not but - holding down a key is not really an "event" so I doubt this is built in. One thing you could do is handle the key down event and set a flag that the key is being held down then clear the flag on the key up event. If you need to handle multiple keys, you can store a map of <Key, Boolean> pairs indicating the state of each key. Just an idea, hope that helps. ------------------------------------------------------------------------------------------------- TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

