Hi,
I am facing issues while using webview. I am behind proxy. I have
already set proxy through code and set the user crediantials too.
//Set the proxy through code
System.getProperties().put("proxySet", "true");
System.getProperties().put("proxyHost", "198.152.145.5");
System.getProperties().put("proxyPort", "8080");
//Set user crediantials for proxy authentication
Authenticator authenticator = new Authenticator() {
public PasswordAuthentication
getPasswordAuthentication() {
return (new PasswordAuthentication
("userid..","passsword".toCharArray()));
}
};
Authenticator.setDefault(authenticator);
//Using webview
setContentView(R.layout.main);
webview = (WebView)findViewById(R.id.webview);
webview.getSettings().setJavaScriptEnabled(true);
//I tried this to set the httpauthoraization user name and password.
webview.setHttpAuthUsernamePassword("10.111.14.14", "wipro",
"nitesne", "Indiaisgr8-///");
webview.loadUrl("http://www.google.com/m");
After that what I am getting a blank white screen for few minutes
then (407) Proxy Autentication required message on Webview screen,
rather than google page.(I am using loadurl(http://www/google.com/m)).
I have surfed on net and found that there was issues on webview on 1.1
Android release. However I am using webview on Android 1.5, still I am
geting this error. Not sure whether that issue is resolve in 1.5
build. Please anyone confirm about this. Have anyone encounter this
sort of error??
Regards,
Nitesh
Pune, India
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---