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
Post a Comment