WebView = (WebView) findViewById(R.id.activity_main_webview);
WebSettings webSettings = WebView.getSettings();
webSettings.setJavaScriptEnabled(true);
WebView.loadUrl("http://zzzzzz.com/");
WebView.setWebViewClient(new com.barometer.app.MyAppWebViewClient(){
@Override
public void onPageFinished(WebView view, String url) {
//hide loading image
findViewById(R.id.progressBar1).setVisibility(View.GONE);
//show webview
findViewById(R.id.activity_main_webview).setVisibility(View.VISIBLE);
}});
代码只能使用移动版本调用网络。我想打电话给我的网络放大器。怎么样?