add web view javascript support

This commit is contained in:
andyque 2014-08-29 11:50:08 +08:00
parent 043acb2fd4
commit cf0baef7c0
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import java.net.URI;
import android.annotation.SuppressLint;
import android.content.Context;
import android.util.Log;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.FrameLayout;
@ -42,6 +43,7 @@ public class Cocos2dxWebView extends WebView {
}
this.setWebViewClient(new Cocos2dxWebViewClient());
this.setWebChromeClient(new WebChromeClient());
}
public void setJavascriptInterfaceScheme(String scheme) {