Connecting To Sqlite Database From Phonegap Html File For Android
I am using phonegap and sqlite to develop cross-platform mobile app for android,ios,blackberry.For reference i am using http://docs.phonegap.com/en/1.0.0/phonegap_storage_storage.m
Solution 1:
There are couple of possible problems:
- When you call
openDatabase
the document has loaded, but phonegap has not. The problem is that you call the methodc()
onBodyLoad
notonDeviceReady
as advised in the phonegap tutorial. See here. - Please also check you add the javascript accordingly. A very good way to check is to add the eventListener for deviceready. If it gets fired the javascript is loaded ok.
Post a Comment for "Connecting To Sqlite Database From Phonegap Html File For Android"