Initial sqlite data

3 views
Skip to first unread message

albert

unread,
Oct 29, 2008, 10:31:21 AM10/29/08
to phonegap
Hi,

Is there a way to prepare initial tables/data (sqlite) when bundling
it? or the only way is to create it at the first time the application
started.

Do you guys know in iPhone NDA not allow "Run Code" means?
Is it mean, we can not get external html file and put it in the app
and execute it?

thank you in advance

Jeff McFadden

unread,
Oct 30, 2008, 1:33:34 PM10/30/08
to phonegap
As to the sqlite question, I'm not positive. In my own code I
initialize the first time the application is executed.

The idea of running code has a caveat in the contract to allow running
any interpreted code using apples own interpreters, of which UIWebView
is one.

All this is to say that you can load an external html file and execute
it and still be within the boundaries of the contract.

-- Jeff

Chris Blown

unread,
Nov 2, 2008, 1:11:05 AM11/2/08
to phon...@googlegroups.com
Like Jeff, we are using a complete web app bundled within the app. It checks to see if the sqlite database tables exist if not it creates them and inserts any default data, this only happens the first time its executed.
Reply all
Reply to author
Forward
0 new messages