Loading

android 中 webview 怎么用 localStorage?

http://www.cnblogs.com/yuzhongwusan/p/4211681.html

 

mWebView.getSettings().setDomStorageEnabled(true);   
mWebView.getSettings().setAppCacheMaxSize(1024*1024*8);  
String appCachePath = getApplicationContext().getCacheDir().getAbsolutePath();  
mWebView.getSettings().setAppCachePath(appCachePath);  
mWebView.getSettings().setAllowFileAccess(true);  

mWebView.getSettings().setAppCacheEnabled(true); 

 

posted @ 2015-03-15 19:27  stono  阅读(689)  评论(0编辑  收藏  举报