[android-developers] Re: sqlite in webview

2009-11-17 Thread mayor
I got it working with help from Joe over at PhoneGap. 1. import android.webkit.WebStorage 2. then throw these in your WebSettings: settings.setDatabaseEnabled(true); settings.setDatabasePath("/data/data/com.package.name/ databases"); 3. in your WebChromeClient you'll need to ove

[android-developers] Re: sqlite in webview

2009-11-09 Thread mayor
I couldn't get it to work. there are two new methods to the WebView class: setDatabaseEnabled() and setDatabasePath(). I've tried setDatabaseEnabled alone, and I've tried it with setDatabasePath (thinking it was required for the db to be enabled). didn't work. my current thinking is that setDa

[android-developers] Re: sqlite in webview

2009-11-09 Thread jotobjects
Not clear what you are asking. Do you have an android.webkit.WebView view? What doesn't work? Could post a small example of what doesn't work? On Nov 9, 8:57 am, Julian Avram wrote: > I saw that the browser in sdk2.0 has sqlite support however it doesn't > seem to work in webview (at least for

[android-developers] Re: SQLite in WebView, is it possible??

2009-01-11 Thread Mark Murphy
> My question is is there any way to access SQLite via webview as the > bits and straps I was able to get indicate maybe not that I would have > to write a native class and than hook PhoneGap js api into that.. If by "native class" you mean Java then, yes, you would need to expose relevant APIs v