android - WebView onpagefinished not called for second time -
i using webview load url, first time works properly. if load url second time (for refreshing page , loading different url), onpagefinished not fired.
mwvclient = new webviewclient() { @override public void onpagefinished(webview view, string url) { super.onpagefinished(view, url); log.i(this.getclass().getsimplename(), "page has finished loading"); } }; mwebview.loadurl(mairlinesdata.geturl()); mwebview.setwebviewclient(mwvclient);
try first set client, , load urls
mwvclient = new webviewclient() { @override public void onpagefinished(webview view, string url) { super.onpagefinished(view, url); log.i(this.getclass().getsimplename(), "page has finished loading"); } }; mwebview.setwebviewclient(mwvclient); mwebview.loadurl(mairlinesdata.geturl());
Comments
Post a Comment