All right, I solved my own problem. Figured out I needed to check if the event action was MotionEvent.ACTION_DOWN for touchscreen pressed down.
On Feb 25, 3:50 pm, coolbho3k <[email protected]> wrote: > I have a button in Android that I want to activate immediately as soon > as the user touches it. This is different from a "click" which the > user activates by touching and then releasing. > > I run into problems when I set setOnTouchListener on the button, as > holding the press will continuously trigger the listener. Anything I > can do to just make it trigger each time the user touches the screen? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

