html - Storing a WebView for offline browsing Android -



html - Storing a WebView for offline browsing Android -

what best way forcefulness android store webview media (say sd card) 1 time page loaded?

a few more details:

-each page rich images, scripts , styling.

-each page .5-1 megabyte

-they saved 1 time onfinishedloading override called.

-ideally, best save sd card (thoughts?) utilize local repo open up

not sure if should utilize sql database webviews, or take each view , write out file - , if latter, easiest don't have write total webcrawler each file linked?

in order utilize caching on android, need provide html5 manifest file along html.

<!doctype html> <html lang="en" manifest="manifest.file"> <head> ...

the caching mechanism cache whatever entries list in manifest file sqlite database. maintain in mind database per app, not per webview. (i had lot of problems this).

this article explains steps need take accomplish this. http://web.archive.org/web/20140314001433/http://alex.tapmania.org/2010/11/html5-cache-android-webview.html

you can hello-world illustration caching using page: http://html5demos.com/offlineapp

you can save cache on sd card, long add together write_external_storage permission application manifest.

good luck!

android html html5 webview android-webview

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -