Then local storage is not persistent so goes away when when the app closes, not really what you would expect from localStoarage. To get persistent persistent storage you have to google a little more and eventually arrive at this little bit of code like this
String databasePath = this.getApplicationContext().getDir("database", Context.MODE_PRIVATE).getPath(); webview.getSettings().setDatabasePath(databasePath);
A little cheer as everything seems to be working.
Perhaps I would have preferred a function called setUpForLocalWebApp() that turns on all the stuff you need for a local web app but then I guess that would be too open to coding abuse with programmers turning it on when they should not. Still this is code I only have to figure out once and use again and again.
I confirm it as working ;)
ReplyDelete