webview.setWebViewClient(new MyWebViewClient ());private class MyWebViewClient extends WebViewClient { @Override public void onReceivedHttpAuthRequest(WebView view, HttpAuthHandler handler, String host, String realm) { handler.proceed("me@test.com", "mypassword"); }}这是最受欢迎的解决方案,我不确定在哪里将URL设置为open。请提出建议。



