Hi,
Even i have faced the issue,
The mail problem is that the instance which you press will compulsorily
create two instances, They are MotionEvent.ACTION_DOWN and
MotionEvent.ACTION_MOVE, So to over come this you add a condition as
follows
public boolean onTouch(View v, MotionEvent event) {
// TODO Auto-generated method stub
if(event.getAction() == MotionEvent.ACTION_DOWN){
//start player
return true;
}
On Thursday, November 1, 2012 10:55:21 AM UTC+5:30, Sadhna Upadhyay wrote:
>
> Hi everybody i am playing a audio o button click then it is playin twice
> on single click why it is happening,i dont know please help me if any one
> of you know the reason.
>
All the best
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