I also encountered this issue.
I'd like to know if you have find the root cause and a walk around solution 
for this issue.
 
Can you please share your solution on this? 
Thanks.

On Thursday, April 7, 2011 3:57:06 AM UTC+8, Stephan Wiesner wrote:

> Hi, 
> I have a webview and use caching. This worked fine until now. On my 
> Motorola Defy (Android 2.1) I can not open webpages anymore. I have not 
> changed anything on the code of the webview activity.
> Under preferences/applications I can see that the cache size is 0.
>
>  04-06 21:50:35.452: DEBUG/Alpenkalb(19966): Start webview:
> http://gipfelbuch.ch/tourenfuehrer/uebersicht/region/1
> 04-06 21:50:35.452: DEBUG/Alpenkalb(19966): [ 04-06 21:50:35.499 
> 19966:0x4e13 D/No cache file for url 
> http://gipfelbuch.ch/tourenfuehrer/uebersicht/region/1
>
>  Here is how I enable caching:
>
>  webView.getSettings().setDomStorageEnabled(true);
>
> // Set cache size to 8 mb by default. should be more than enough
> webView.getSettings().setAppCacheMaxSize(1024 * 1024 * 8);
>
> // didn't work for me without this line
> webView.getSettings().setAppCachePath("/data/data/ch.gipfelbuch/cache");
> webView.getSettings().setAllowFileAccess(true);
> webView.getSettings().setAppCacheEnabled(true);
>
>
>
> Any ideas?
> Thanks, 
> Stephan
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to