1. 程式人生 > >WebView簡單介紹及程式碼分析

WebView簡單介紹及程式碼分析

Intent intent = getIntent();
        String url = intent.getStringExtra("murl");

    web_view.setWebViewClient(new WebViewClient());

    WebSettings settings = web_view.getSettings();

    settings.setJavaScriptCanOpenWindowsAutomatically(true);
    settings.setJavaScriptEnabled(true);

    web_view.loadUrl(url);