added option: move cache to external storage

This commit is contained in:
Philipp Schaefer
2013-10-22 12:12:17 +02:00
parent 9248fe6221
commit 437a33f1d5
6 changed files with 36 additions and 5 deletions

View File

@ -44,10 +44,8 @@ public class IITC_WebView extends WebView {
mSettings.setAllowFileAccess(true);
mSettings.setGeolocationEnabled(true);
mSettings.setAppCacheEnabled(true);
mSettings.setDatabasePath(getContext().getApplicationInfo().dataDir
+ "/databases/");
mSettings.setAppCachePath(getContext().getCacheDir()
.getAbsolutePath());
mSettings.setDatabasePath(getContext().getApplicationInfo().dataDir + "/databases/");
mSettings.setAppCachePath(getContext().getCacheDir().getAbsolutePath());
mJsInterface = new IITC_JSInterface((IITC_Mobile) mContext);
addJavascriptInterface(mJsInterface, "android");
mSharedPrefs = PreferenceManager.getDefaultSharedPreferences(mContext);