This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

WebViewClient in android  RSS feed

 
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: 9610
37
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!