Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Highlighted
New Developer
Posts: 8
Registered: ‎02-22-2011
My Device: 8900
My Carrier: T-Mobile
Accepted Solution

Database help for air....

I need some guidance on starting a localized database for my app anyone know where I can get some step by step help on the coding of a database in air?

New Developer
Posts: 8
Registered: ‎02-22-2011
My Device: 8900
My Carrier: T-Mobile

Re: Database help for air....

I guess to further my question.... What command lines do i need at the import section at the top? also what commands start the construction of datafields and initiate there storage in the sqllite local data storage... also is there a trick to keep it on the device so that updates do not affect the storage?

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Database help for air....

Have you looked at the API yet at:

 

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/data/SQLStatement.html

 

There are no "command line" tools, everything is done via the API.

 

You can place the database file in app-storage and that is untouched by upgrades.  Uninstalls will remove this directory (beware).

New Developer
Posts: 8
Registered: ‎02-22-2011
My Device: 8900
My Carrier: T-Mobile

Re: Database help for air....

This helps alot thank you!!! also is there anything you can recomend about the deletion of uninstalls? I would like the data to stay on the device.... 

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Database help for air....

Then you may wish to store the database file in the document directory.  Look at the file class for


File.documentsDirectory

 

 

New Developer
Posts: 8
Registered: ‎02-22-2011
My Device: 8900
My Carrier: T-Mobile

Re: Database help for air....

Thank you,

 

you have been much help