开发者

Setting WebViewClient to WebView doesn't work correctly

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜