How do I call window.openDatabase from a webView hosted in an android application?

Posted by Kevin on Stack Overflow See other posts from Stack Overflow or by Kevin
Published on 2010-03-19T01:37:22Z Indexed on 2010/03/19 1:41 UTC
Read the original article Hit count: 522

Filed under:
|

I created a native Android app that basically hosts a webView control. That webView is then used to load a page that calls window.openDatabase from JavaScript. I can successfully confirm that the API exists by verifying window.openDatabase.

Calling this method returns a null when called in a hosted webView control. Calling the same method in the Android Browser returns an instance of the database.

Does anyone know the permessions in the manifest or settings on the webView control that need to be set to access the database? Is this even possible in a native app.

© Stack Overflow or respective owner

Related posts about android

Related posts about JavaScript