1

How to get server response code for redirecting response on WebView

view story
linux-howto

http://stackoverflow.com – I have a WebView component, I have set a WebViewClient to it: WebView webView = (WebView)findViewById(R.id.my_webview); webView.setWebViewClient( new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String newUrl) { //Here, I handle the url redirecting. //@newUrl is the redirected url // How to get server response code here?? } } ); As you see above, my code handles redirecting url in shouldOverrideUrlLoading(...). It works fine. Sometim (HowTos)