There is a fragment of TwoFragment , it has a method
WebView mWebView; public void reloadWebView() { mWebView.loadUrl("javascript:window.location.reload(true)"); } I MainActivity trying to use this method in MainActivity as follows:
ExampleFragment fragment = (ExampleFragment) getFragmentManager().findFragmentById(R.id.example_fragment); It does not work, why?
fragment.reloadWebView();the same ... - JuriySPb ♦