About Me

My photo
Drum & Bass Producer, Software Developer, Love my Cats

Android : How to enable HTML5 LocalStorage API in a WebView

webView.getSettings().setJavaScriptEnabled(true); // enable javascript
// enable local storage
webView.getSettings().setDatabaseEnabled(true);
webView.getSettings().setDatabasePath("/data/data/" + getPackageName() + "/databases");

webView.getSettings().setDomStorageEnabled(true);