android在webview中打开123 flash聊天

时间:2013-12-03 09:33:33

标签: android flash webview

我正试图在Android的网页视图中打开http://server-mychating.com/client/htmlchat/123flashchat.html,这是我的代码:

public class WebViewFragment extends SherlockFragment {

private String url;
WebView webView;
public static final String URL_ARGUMENTS = "url arguments";

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
        Bundle savedInstanceState) {
    View view =  inflater.inflate(R.layout.fragment_webview, container, false);

    final ProgressDialog pd = ProgressDialog.show(view.getContext(), "", "جاري التحميل...",true);
    webView = (WebView) view.findViewById(R.id.webView);
    webView.getSettings().setSupportZoom(true);  
    webView.getSettings().setPluginsEnabled(true);
    webView.getSettings().getJavaScriptEnabled();
    webView.getSettings().setPluginState(PluginState.ON);
    webView.getSettings().setBuiltInZoomControls(true);
    webView.setWebViewClient(new WebViewClient() {
        @Override
        public void onPageFinished(WebView view, String url) {
            if(pd.isShowing()&&pd!=null)
            {
                pd.dismiss();
            }
        }
    });
    this.url = getArguments().getString(URL_ARGUMENTS);
    webView.loadUrl(this.url);

    return view;
}

}

但它在webview中找不到错误但我在android浏览器中尝试过它工作正常 我是否必须启用其他内容才能进行Flash聊天?

我确实放了权限

0 个答案:

没有答案