12-07-2010 07:04 AM - edited 12-07-2010 07:08 AM
Just recently started delving into the blackberry SDK and getting a couple of app ideas built, with Flash Builder (Burrito) and Adobe AIR in AS3. I am building one that requires a sqllite database. At the moment every time I run the app on the simulator it creates a new database rather than finding the previously created one, which leads me to believe that the previous one is destroyed once the app closes on the simulator - is this so or am I missing something? I am currently running the simulator from an ISO and was also wandering if running from an OS written to a partitioned drive might give it a more permanent location?
If it isn't deleted when the app closes where is the location of the root folder for the VMWare player? (windows 7)
12-07-2010 08:43 AM
I would think that not be the case.
File state is not lost when an application is closed or the simulator is rebooted unless you explicitly remove it. My guess is that you're overwriting the db file each time or you're not really saving it and information is just being cached in memory. Just a hunch.
12-07-2010 10:06 AM
What a dip **bleep**! I had a space in AUTOINCREMENT in my sql query and I was catching the error so it was failing silently! Spelling error fixed and all working good!