开发者

Setting WebViewClient to WebView doesn't work correctly

开发者 https://www.devze.com 2023-01-21 05:04 出处:网络
I am writing an app that should authorize with Twitter. I load a WebView Link to my app\'s server, which redirects me to the Twitter authorization page. Before this, the user is logged in on my app se

I am writing an app that should authorize with Twitter. I load a WebView Link to my app's server, which redirects me to the Twitter authorization page. Before this, the user is logged in on my app server with DefaultHttpClient.

If I just write _webView.loadUrl(link); then everything works correctly, but if I add _webView.setWebViewClient(new WebViewClient(){}); before loading link - it redirects me to authorization on my app's server.

What should开发者_StackOverflow社区 I do to remove this redirection?

0

精彩评论

暂无评论...
验证码 换一张
取 消