05-13-2012 11:46 AM
I also wasn't aware that in debug-mode the app/ tree is writable
for all others running into trouble like this I recommend to take a look at the session DEV153 (Anatomy of BB10 Projects) where I learned about read-only and read-write areas. Maybe the sessions are only available for attendees of BB10Jam - then I would recommend to attend at one of the Bb10Jam World Tour in cities worldwide.
05-13-2012 02:36 PM
The quotes database for this sample is not copied to the sandbox data folder, nor to shared. It's just left in the app folder, with the code and assets.
With a signed install, that entire tree (under app/) is read-only. Everyone knows that... or should.
With a debug token install, the tree is writable. Who knew that?
That explains everything that I am seeing, (including the inconsistancy).
So I guess the question then is, when will RIM provide an SQL example that is actually useful? (Especially considering that this one points towards the wrong solution). Or more generally (to get at what I am really trying to do) an example of how to save a dynamicly created DataModel object. So far my attempts to save this data as a QSettings object, a QHash, a QVariant, and as a QByteArray have all failed.
05-13-2012 03:00 PM
05-13-2012 04:22 PM
it's something similar to the 'old' java ...
when I'm distributing a pre-loaded SQLite DB together with the APP, then at startup of the app I'm testing if the DB is there and if not I'm copying the DB to a valid location (SD Card in this case) and open.
so it seems to be the same now:
deploy the DB at /app tree and at first run copy it to a r/w location.
next weeks I'll also have to solve this and - if not already done - I'll do it and push to GitHub.
should be an easy to use feature.
05-13-2012 05:44 PM
05-13-2012 06:16 PM
ekke: GitHub... of course!
RIM's heading towards the point they can always say "Contributions are welcome" instead of "please file an issue in Jira". Good for them. :-)
yes - that's the trick. So Eduardo is guilty with all his work on Open Source at RIM ;-)