A click is sent on button up, so you cannot do it this way. You should use an OnLongClickListener instead (after making sure you set the View long clickable.) Otherwise you would need to listen for key/touch events, start a timer and perform the long click when the timer runs out (we do it with a simple delayed message in the framework.)
On Oct 25, 2008 4:06 PM, "cyntacks" <[EMAIL PROTECTED]> wrote: Ok, this is really KILLING me. I just went through the Button/View/ Listener's API again and still can't figure this out. When a button is pressed onClick(View v) of the OnClickListner is called, but how can I determine if the button is being held? I want to perform "x" action while the user "holds" the button... I had hoped isPressed() would help, but can't seem to figure it out. I know this can be done as the DatePickerDialog implements this, but I haven't gotten around to installing the actual source yet... Anyone know how to do this? Kevin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

