I use the following code to load a facebook like button inside a webview.
likeWebView = (WebView)findViewById(R.id.webview);
likeWebView.getSettings().setJavaScriptEnabled(true);
url ="http://www.facebook.com/plugins/like.php?" +
"href=" + URLEncoder.encode( "http://developers.facebook.com/docs/opengraph/" )
+ "&" +
"layout=button_count&" +
"show_faces=0&" +
"width=90&" +
"height=24&" +
"locale=en_IN" +
"colorscheme=light" ;
likeWebView.loadUrl( url );
the problem is when the user is signing in the process redirects him to a blank page,
how do i intercept this webview request and cancel this action/close webview ?
I would actually use a WebViewClient’s shouldOverrideUrlLoading method in this case.