Two events are generated...
First :         ACTION_DOWN
Second: ACTION_UP

Try something like this in your event handler:

if (event.getAction() == MotionEvent.ACTION_DOWN) {
     //play sound here
}

Regards
Sarwar Erfan

On Sep 30, 4:11 am, ericmahlon <[email protected]> wrote:
> I have an interactive image which uses OnTouchListener to get the
> coordinates.  In doing so...if a user places their finger on the area
> it may hit it multiple times thus getting new coordinates within the
> area that plays the sounds...thus playing the sound twice.  Any
> suggestions on how to clear up this issue?
>
> Thanks

-- 
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

Reply via email to