how to play mp3 file from asset folder in webview on android?
<p>I am new android developer , trying to play local sdcard mp3 file in WebView .
help me.</p>

<p>I want to add sound in android web view application.
( The sound should be play when click a button in the screen.)
My html application worked in the browser.
But not worked in android.I don't know why?</p>

<pre><code>WebView  webview;
 @Override
 public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        webview=(WebView)findViewById(R.id.webview);
        et_Url=(EditText)findViewById(R.id.et_Url);
        btn_Go=(Button)findViewById(R.id.btn_Go);

        webview.getSettings().setJavaScriptEnabled(true);
        webview.loadUrl("file:///android_asset/test.html"); 

 }
 //asset file
   test.html
   test.mp3
  //html source code
  &lt;audio id="sample" src="file:///android_asset/test.mp3" controls preload&gt;&lt;/audio&gt;
  &lt;a href="javascript:playSegment(0.5);"&gt;Play2&lt;/a&gt;
  &lt;script&gt;
  var audio = document.getElementById('sample');
  var segmentEnd;
  function playSegment(startTime, endTime){
    segmentEnd = endTime;
    audio.currentTime = startTime;
    audio.play();
  }
  &lt;/script&gt;
</code></pre>
