开发者

Using a WebView widget to authorize access

I am trying to access a server that requires authorization using the WebView widget in Android. I think it's the .htaccess type of authorization.

I works with the default browser provided with the OS, but when I try it with a WebView.. it gives a 401 immediately.

Any ideas on how I can have a WebView p开发者_StackOverflowresent the dialog to enter the user/pass (and remember it)?

Thanks.


Try using a WebViewClient, overriding its onReceivedHttpAuthRequest() method.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜