*My java code is here*
package com.customlistview1;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.webkit.WebChromeClient;
public class Image extends Activity
{
private WebView webview;
@Override
public void onCreate(Bundle icicle)
{
super.onCreate(icicle);
setContentView(R.layout.web);
setupwebwiew();
}
private void setupwebwiew()
{
webview=(WebView)findViewById(R.id.webkit);
webview.setWebViewClient(new WebViewClient());
webview.setWebChromeClient(new WebChromeClient());
webview.getSettings().setJavaScriptEnabled(true);
webview.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
webview.loadUrl("file:///android_asset/buttonsound2.html");
//// webview.loadUrl("file:///android_asset/we.mp3");
}
}
I enabled the javascript.
But not play the sound.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en