手机版的163邮箱可以登陆,126邮箱输入账号密码之后就提示系统繁忙。
webview的所有参数所有setting都试了,还是这样,有大神救救我吗?
public class MainActivity extends AppCompatActivity {
private WebView webView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
webView = (WebView)findViewById(R.id.web_view);
webView.getSettings().setJavaScriptEnabled(true);
webView.setWebViewClient(new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
Log.d("fuck", "正试图加载url:" + url);
return false;
}
});
webView.loadUrl("http://smart.mail.126.com/");
}
}
Following up, it’s a cookie issue, just add the following code.
If you find it useful, please follow me.
at
shouldOverrideUrlLoading
中return true
The information prompt of the 126 mailbox system does not seem to have anything to do with your webview implementation. Please try again after a while, or consult 126 customer service.