android - SaveWebArchive method - trying to open archive -


i'm trying open web archive in webview. can't find path of archive.

 webview webview = (webview) findviewbyid(r.id.webview);  webview.loadurl(url);  webview.savewebarchive("webarchive"); 

now, archive? path of this? think should use webview.loadurl(uri.fromfile(my archive));

, should use in archive field? thanks.

you use webview.savewebarchive in wrong way. should use this:

webview.savewebarchive(getfilesdir().getabsolutepath()          + file.separator + yourarchive_name+".xml"); 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -