I am a beginner in HTML and Java and I am attempting to play audio files in a simple web app on the android through the Web view using HTML and Java. I have succeeded in getting this to work on Android 4.0. It however will not work on 2.3.3 or 2.2. I've done a lot of researching and so far all I have found is that it is not supported. Can anyone confirm or deny this and possibly point me in the right direction? Here is what I have working on 4.0 but nothing else.
WebView engine = (WebView) findViewById(R.id.web_engine);
String audioTest = "< html >" + <br/>
"< body >" + <br/>
"< audio id='egSound' preload='auto' autoplay ='autoplay'>" + <br/>
"< source src=' www.egSoundUrl.com '>" +
"< /audio>" + <br/>
"< /body>" +
"< /html>";
engine.loadData(audioTest, "text/html", null);
How can I get the same code to work for 2.3.3? In my research I came across someone who was able to play the audio file using the video tag, but I was unable to get that working. Any shared knowledge will be greatly appreciated.