In android 2.2 i’m not able to retrieve local storage value after the application is force closed.IF you have any suggestion…Please take look at my code:
WebSettings ws= appView.getSettings();
ws.setDatabasePath("/data/data/com.decodeSoutions.hive/app_database");
ws.setJavaScriptEnabled(true);
ws.setDatabaseEnabled(true);
ws.setDomStorageEnabled(true);
Thanks in adv
I had the same problem. At first I load my data with .loadDataWithBaseURL() with assets dir as base url and there is the problem. In Android 2.1 this works fine with setDomStorageEnabled(true) but in 2.2 you have todo the following.
At first:
Now the tricky part beginns:
Write all the html code to a file because the “loadData”-functions disable the localstorage in some way.
But be carefull if you load css or js relative in your html, because your basepath is not set. To fix this enter “file:///android_assets/” to your html code e.g:
Hope this helps someone. It costs me hours!