PhoneGap for Android lets you store local audio files in two places:
android_asset: file name must start with /android_asset/sound.mp3
sdcard: file name is just sound.mp3
If you place your DANCE.mp3 file in your project's assets directory, then you can play it using the path:
mp3file = new Media("/android_asset/DANCE.mp3",
function() {
alert("playAudio():Audio Success");
},
function(err) {
alert(err);
}
);
mp3file.play();
(You can read the source for AudioPlayer.java in the Android PhoneGap sources to see how this works.)