1

So problem is: I open webview url with form and when I press back, it goes back to the same page. I think it is related to form resubmission. What can I do? Maybe there is an override for form resubmission handling in WebViewClient or WebChromeClient that I am not aware of? I cannot just handle url manually, because in my case it would be close to impossible to handle each possible case.

Here is my back logic?

@Override
public boolean onBackPressed() {
    if (webView.canGoBack()) {
        webView.goBack();
        return true;
    }
    return false;
}
Heisenberg
  • 3,153
  • 3
  • 27
  • 55

0 Answers0