Reputation: 281
I have been developing an application with Phonegap and Jquery mobile, I have added a sound on the click event. Each time any button is pressed, it plays a sound. The problem is when i use the app on android phone. it plays its default sound first on button click or tap and then play mysound.
Is there any way to off the default sound on android using phonegap or eclipse settings?
Upvotes: 2
Views: 463
Reputation: 2136
Think you should add event.preventdefault()
to the end of your click event function. This is usually used to prevent the default action of an event.
Upvotes: 0