[mobile] Provide a method to save a file

This commit is contained in:
fkloft
2014-02-13 21:46:03 +01:00
parent 1c637cce10
commit 51a835ce3b
4 changed files with 87 additions and 10 deletions

View File

@ -56,7 +56,13 @@ public class IITC_WebView extends WebView {
mSettings.setCacheMode(WebSettings.LOAD_DEFAULT);
mSettings.setAppCachePath(getContext().getCacheDir().getAbsolutePath());
mSettings.setDatabasePath(getContext().getApplicationInfo().dataDir + "/databases/");
mJsInterface = new IITC_JSInterface(mIitc);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
mJsInterface = new IITC_JSInterfaceKitkat(mIitc);
} else {
mJsInterface = new IITC_JSInterface(mIitc);
}
addJavascriptInterface(mJsInterface, "android");
mSharedPrefs = PreferenceManager.getDefaultSharedPreferences(mIitc);
mDefaultUserAgent = mSettings.getUserAgentString();