title: How do I write to localStorage from Java on Android
body: <p>I am looking into the <a href="http://developer.android.com/reference/android/webkit/WebStorage.html" rel="noreferrer">http://developer.android.com/reference/android/webkit/WebStorage.html</a> API but it does not support writing to localStorage from Java. What I would like to do is to store data from the Java side of an android application to be read by the JavaScript side of the app.</p>
  
  <p>For instance, in JavaScript I can use localStorage.getItem(), localStorage.setItem(). However, I cannot find similar API to accomplish the task from Java. Is there a workaround or it has not been implemented by the Android platform yet?</p>
  
  <p>Any help would be appreciated!</p>