Some how database object in HTML 5 was always coming as NULL both in emulator and device. Same HTML 5 code was working properly in Crome browser. In the end, I drilled down to quotaUpdater.updateQuota() method, I tried various quota sizes but at the end "estimatedSize * 2" worked for me which is mentioned in above code sample.

You can use www.html5test.com to check if specific HTML5 feature is supported by your browser.

Current web browsers support HTML5 to varying degrees. Modernizr JavaScript library built to make browser detection of HTML5 features easier. It can be used to check if certain HTML5 features required by the app is supported by the browser or not.

18 comments:

Thanks for the nice blog. It was very useful for me. Keep sharing such ideas in the future as well. This was actually what I was looking for, and I am glad to came here! Thanks for sharing the such information with us.android application development

Anyone have any ideas how to handle this issue in a pure web app (not native)? We have a few devices that return db=null after performing window.openDatabase. The window.openDatabase method is available, that much I know. No matter what value I use for maxSize, I still get db is null.