In the fragment I use WebView .

You need to create a separate method that implements the page refresh in WebView and can be called from another class.

    1 answer 1

    With such a question, I can advise only such a very obvious solution:

     WebView mWebView; ... public void reloadWebView() { mWebView.reload(); } 
    • So I also thought about it, but for some reason, all in one voice they say this method is undesirable - elik
    • one
      @elik; You can also do this: mWebView.loadUrl("javascript:window.location.reload(true)"); . - post_zeew
    • and between them there is a fundamental difference?) or an amateur? - elik
    • 2
      @elik; If you use the mWebView.postUrl() method to load the page, then mWebView.reload() will not work correctly. - post_zeew
    • Understand) thanks) - elik