[android-developers] Re: Help! Trying to get Basic Auth working with WebView. setHttpAuthUsernamePassword?

2009-10-20 Thread Stoffe
Hi! Just one more discovery that in my opinion is probably a bug in the framework. When you call setHttpAuthUsernamePassword only the first call is stored. If you try override values for the same host and realm it will only return the first entered user. Even after restarts of the client. I

[android-developers] Re: Help! Trying to get Basic Auth working with WebView. setHttpAuthUsernamePassword?

2009-10-15 Thread Stoffe
Hi Matt! You need to do something like this: @Override public void onCreate(Bundle savedInstanceState) { WebView webkit = (WebView) findViewById(R.id.web_view); On Oct 13, 12:17 am, Croccy22 matthew.bea...@gmail.com wrote: Hi all, I have a WebView in my layout which I want to display a web

[android-developers] Re: Help! Trying to get Basic Auth working with WebView. setHttpAuthUsernamePassword?

2009-10-15 Thread Stoffe
Hi Matt! @Override public void onCreate(Bundle savedInstanceState) { WebView webkit = (WebView) findViewById(R.id.web_view); webkit.setHttpAuthUsernamePassword(page.getHost(), realm, username, password); webkit.setWebViewClient( new WebViewClient() { @Override public