javascript - Setting cache size doesn't work -


i have app has webview loads html file lots of javascript use google maps. want use lots of cache of webview (for maps) as possible specially offline (except in 1 case, see below), added in activity holds webview:

    mywebview = (webview) findviewbyid(r.id.webviewmap);     ws = mywebview.getsettings();     ws.setuseragentstring(ws.getuseragentstring() + " avewebview");     ws.setjavascriptenabled(true);      ws.setappcachemaxsize( 500 * 1024 * 1024 ); // 500mb // deprecated in api 18      ws.setallowfileaccess(true);     ws.setappcacheenabled(true);     ws.setdatabaseenabled(true);     ws.setdomstorageenabled(true);          ws.setcachemode((online) ? websettings.load_cache_else_network : websettings.load_cache_only); 

it works, see maps offline, cache stays below 40mb instead of 500mb, deleting stuff. know cache condition deprecated in api 18, below api 18.... doing wrong , how can raise cache size?

i bet duplicate... couldn't find satisfactory answer.

thanks!

l.

browser cache stuff stored under /data partition. maybe need make sure there's 500m empty spaces under /data. remember there no specific limitation regarding maximum app cache size.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -