title: IndexedDB work in Android native app
body: <p>We've got application to view some specific materials. Among material types there is <code>HTML5</code> presentation that is shown in <code>WebView</code> widget inside app. And now we need to get detailed information about this view (for example slide show duration, list element pick where it is available, etc).</p>
  
  <p><strong>It is what customer wants - we can't change it.</strong></p>
  
  <p>We decided to use <code>IndexedDB</code> inside <code>HTML5</code> to store information locally. Now storing works (as I know <code>:)</code> ). Next problem is to get this information by app and it is not solved yet. Unfortunately google didn't help me.</p>
  
  <p>How to get information from <code>IndexedDB</code> file if I know its path? Or do you know another way to transfer data from html to native app?</p>
  
  <p>P.S. Writing custom browser could not be solution.</p>
  
  <p><strong>Update</strong></p>
  
  <p>Found solution to load file from JS. In chrome browser it automatically saves in downloads. In android app I'm setting to <code>WebView</code> object <code>DownloadListener</code> to listen file save event. </p>
  
  <p>Catching save file works perfect. But the url path is looks like <code>blob:file/...</code> and I can't get info from it. Tried using <code>ContentResolver</code>, create <code>File</code> object, replace <code>blob:</code> string with nothing, start <code>ACTION_VIEW</code> intent - nothing helped.</p>
  
  <p><strong>Update</strong></p>
  
  <p>Tried to use <code>DownloadManager</code> and <code>DownloadManager.Request</code> - it throws following exception</p>
  
  <pre><code>java.lang.IllegalArgumentException: Can only download HTTP/HTTPS URIs: file:///fa4857ad-0e86-454a-a341-123729e9ece0
  </code></pre>
  
  <p>Same with <code>blob:file</code> uri.</p>