I have an application using local HTML5 storage. Data in local storage is persistent throughout the application, and the application is open or closed. However, when the application was updated from the repository, the local repository was erased. Is there a way to prevent local storage loss during application updates? Thank!
mWebView = (WebView) findViewById(R.id.mWebView);
WebSettings mWebSettings = mWebView.getSettings();
mWebSettings.setAllowFileAccess(true);
mWebSettings.setDatabaseEnabled(true);
mWebSettings.setDatabasePath("/data/data/"+this.getPackageName()+"/databases/");
mWebSettings.setDomStorageEnabled(true);
mWebSettings.setJavaScriptEnabled(true);
source
share