title: Using local storage on Android webview
body: <p>I am experimenting with Android code:  I would like to store one value using HTML 5 local storage.   For this exercise I' using a page as simple as this one:
  <a href="http://www.w3schools.com/html5/tryit.asp?filename=tryhtml5_webstorage_local_clickcount" rel="noreferrer">http://www.w3schools.com/html5/tryit.asp?filename=tryhtml5_webstorage_local_clickcount</a></p>
  
  <p>My manifest does allow me to hit the internet, and it is min-sdk of 7.</p>
  
  <p>Here is my java code:</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
      webview = (WebView) findViewById(R.id.webview);
      WebView webView = (WebView) findViewById(R.id.webview);
      webView.addJavascriptInterface(new JavaScriptInterface(this), "Android");
      WebSettings webSettings = webview.getSettings();
      webSettings.setJavaScriptEnabled(true);
      webSettings.setDatabasePath("");
      webSettings.setDomStorageEnabled(true);
      webview.setWebChromeClient(new WebChromeClient());
      webview.loadUrl("http://www.xyz.com/test.html");
      ///xyz.com/test.html is a sample  :)
      webview.setWebViewClient(new HelloWebViewClient());
  }
  </code></pre>
  
  <p>My problem is that when I close the app, the locally stored value is no longer there.  I can browse to the same page using the default browser, and the value is persistent even after closing the emulator, which is exactly the behavior  that I am looking for.</p>
  
  <p>This is probably a something extremely simple....any ideas?</p>