I have a html form in a webview, when I click on some button on it, it sends a request to the server and the server responds accordingly. I want to intercept server response in android.
You need to use webViewclient and override its methods ":
webView.loadUrl(url);
webView.setWebViewClient(new WebViewClient(){
@OverridepublicvoidonPageFinished(WebView view, String url){
// do write your code here
}
//some more methods
});