h_a86
h_a86

Reputation: 281

Phonegap Jquery mobile Application

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

Answers (2)

Nathan Teyou
Nathan Teyou

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

Oberheim
Oberheim

Reputation: 78

You could try using event.preventDefault();

Upvotes: 1

Related Questions