android - Keep webView page already loaded? -
i have created browser has button open new tab. when click goes previous activity webview. problem don't want reload page again when backpress. same thing happens when screen rotates. there specific function that? thanks.
override webview's onpagestarted method that
@override public void onpagestarted(webview view, string url, bitmap favicon) { super.onpagestarted(view, url, favicon); string htmlcontent = getremotecontent(url); webview.loaddatawithbaseurl(url, htmlcontent, null, "utf-8", url); }
Comments
Post a Comment