Hi Brian I was also facing the same problem. I have on solution to access the password protected links. you need to set the client for your webview.
In the webviewclient subclass override the following callback method "onReceivedHttpAuthRequest(WebView view,HttpAuthHandler handler, String host, String realm)" inside this method put handler.proceed("Your username", "Your Password"); After that the link which you have supplied will open in your webview. Regards Pankaj Bisaria On Mar 18, 12:54 pm, BrianH <brian.herna...@gmail.com> wrote: > I am trying to use WebView.setHttpAuthUsernamePassword() to handle > basic HTTP authentication on displaying a web page. I wouldn't think > it's anything complicated but I cannot find any documentation on how > to use it, an example, etc. > > I've tried what I would guess is the usage: > > webview = (WebView) findViewById(R.id.webview); > webview.getSettings().setJavaScriptEnabled(true); > webview.setHttpAuthUsernamePassword("www.foo.com","realm > text","joe","xyz123"); > webview.loadUrl("http://www.foo.com/index.html"); > > but I can see from the web server logs that the authentication > information is not being sent. The client side (in the emulator) shows > only a blank (black) view. The same url loaded in the emulators > browser loads fine. > > Any suggestions or pointers to examples on how to use this? Or an > alternative to handle the authentication information? > > Thanks > --brian --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---