I\'m trying to use application cache in HTML5 for Android PhoneGap Application, but this doesn\'t work, it doesn\'t feel with ApplicationCahce Events.
functi
I believe the application cache is not enabled by default in the WebView. What you will need to do is in the Java class that extends DroidGap call:
this.appView.getSettings().setAppCacheEnabled(true);
in your onCreate() method.
You may also need to call:
this.appView.getSettings().setAppCacheMaxSize(sizeInBytes);
this.appView.getSettings().setAppCachePath(pathToCacheDir);
Please note the cache directory must exist before you call setAppCachePath().
Read up on...
http://developer.android.com/reference/android/webkit/WebSettings.html#setAppCacheEnabled(boolean) http://developer.android.com/reference/android/webkit/WebSettings.html#setAppCacheMaxSize(long) http://developer.android.com/reference/android/webkit/WebSettings.html#setAppCachePath(java.lang.String)