Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WebViewClient in android

 
rashmi swamy
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to load Facebook URL from webview and i am setting setWebViewClient(client). It is working fine with out proxy. But its not working with proxy, even after doing proxy settings. I want to load this URL in dialog activity. Please let me know the solution. Following is the code i am using

mWebView = new WebView(getContext());
mWebView.setVerticalScrollBarEnabled(false);
mWebView.setHorizontalScrollBarEnabled(false);
mWebView.setWebViewClient(new FBLoginDialog.FbWebViewClient());
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.loadUrl(mUrl);
mWebView.setLayoutParams(FILL);
mContent.addView(mWebView);


 
Ankit Garg
Sheriff
Posts: 9580
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rashmi please check your private messages for some administrative matter.

Saying its not working is not of much use. Tell us what is the error or exception that you are getting...
 
rashmi swamy
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when I tried above code with out proxy it works fine. But with proxy environment its not loading the URL, even after setting proxy through code. Its displaying blank screen. When i debug the code its not calling shouldOverrideUrlLoading(WebView view, String url) method in webViewClient. Please provide me solution that it should work with proxy settings.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic