cra*_*igk 11 android android-webview
错误是
java.lang.Throwable: EventHub.removeMessages(int what = 107) is not supported before the WebViewCore is set up.
我打电话给
webview.loadUrl("javascript:myJavaMethod(" + itemArr + "," + telcoID + ");");
Run Code Online (Sandbox Code Playgroud)
在...上
webview.setWebViewClient(new WebViewClient() {
@Override
public void onPageFinished(WebView view, String url) {
Run Code Online (Sandbox Code Playgroud)
这是一个播放flash视频播放器的webview,在2.2,2.3.3等都很好,在冰淇淋三明治上尝试过它并且没有可见的错误(除了它只是黑屏还是视频播放)
有什么想法吗.
您可以调用 webview.loadUrl("javascript:myJavaMethod(" + itemArr + "," + telcoID + ");"); 在后台线程中。这可以是一个解决方案。
它会警告: A webview method was called on thread xxxx 所有 webview 方法都必须在 UI 线程上调用。
但它有效。
| 归档时间: |
|
| 查看次数: |
6719 次 |
| 最近记录: |