tags:

views:

356

answers:

2

Is it always necessary to create a database for the user in an adobe air application or can you ship an empty database as part of the distributed app?

+3  A: 

Look up the section 'Distributing a pre-populated database' in Flex 3.0 documentation. From the documentation:

[...]As an alternative to creating the database, structure, and data programmatically, you can distribute a pre-populated database with your application. To distribute a predefined database, include the database file in the application's AIR package.

Like all files that are included in an AIR package, a bundled database file is installed in the application directory (the directory represented by the File.applicationDirectory property). However, files in that directory are read-only. Use the file from the AIR package as a "template" database. The first time a user runs the application, copy the original database file into the user's application storage directory (or another location), and use that database within the application.

So, the answer to your question:

can you ship an empty database as part of the distributed app?

is yes!

dirkgently
thats just what I wanted - thanks!
codecowboy
A: 

Hi !!!!!! I have made a video player in Flex builder for AIR application..... can anyone tell me how can I store my videos files(which are around 100) in SQLite database and play them directly from there. Also,how to bundle database files in AIR application in order to provide my application to user. kindly give steps or code for this.

related questions