01-14-2011 01:24 PM
Unfortunately Yes. We get the same errors in the browser. And we dont have a way of checking for MassStorageMode. All we can do is trap the exception and suggest to the user what to do. I really hope that RIM takes care of this issue in some elegant way in the next release.
01-14-2011 01:35 PM
Good to know. Unfortunately, checking for mass storage mode isn't really a solution for the Widget framework either. In my further tests (see this comment) if the user connects to USB even when the app isn't running, trying to open the database any time after that will throw this exception.
As far as I can tell right now, using SQLite in OS 6.0 isn't an option.
Out of curiosity, what OS point release are you testing with?
01-14-2011 01:46 PM
Unfortunately I cant share the release with you because it is a pre-release version of 6 that is available to Blackberry ISVs. I do appologize as I would love to share it but we are under NDA.
Its a big call to say that you cant use SQLite but I definitely understand your frustration. Can you think of any other options in 6.0? Gears is no longer supported so I dont see what other options exist.
01-14-2011 01:57 PM
True, I might be jumping to conclusions... hopefully there's a workaround. I was hoping that this problem was limited to my point release, but it doesn't sound like that's the case. I may try to create a reduced case page and see where that leads me.
Not sure what the other options are. This post indicates that localStorage doesn't work reliably. Cookies, depending on the situation. With a widget, it's presumably possible to write an extension that works with the native Persistent Store.
01-19-2011 09:45 PM
For what it's worth, workaround-wise, I ran a test using cookies (setting a 1-yr cookie with PPK's code). The cookie values don't survive a device restart in a widget app, though that doesn't seem to be a problem in the browser.
Tested on my same Torch (bundle 278; 184.108.40.206).
11-26-2011 05:13 PM - edited 11-26-2011 05:14 PM
I ran into this problem today after I used Desktop Manager to restore my device. I had to re-format the SD card to get my app working again. 9700 running OS 220.127.116.116
Can't rely on SQLite in OS6 and can't use localStorage in OS5? What's next?