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.
08-23-2010 11:34 PM
Today I tried to create a simple widget with some database interaction. I started with reading some articles on the blackberry developer pages and found some interesting resources. Especially that gears support was dropped with OS6. My future widgets should run on OS5 and OS6 devices, so I followed the instructions at Supporting Gears using HTML5 in BlackBerry Widget applications.
After reading some stuff on this WebSQL Api I tried to create a small widget, which stores a simple text-entry in the Database. I tried the WebSQL Code in my normal desktop browser (Opera) and it worked, but not when I test it in the BlackBerry simulator.
I set up my widget as described in the "How to Avoid Recompiling a BlackBerry Widget During Development" tutorial.
In my widget, the "openDatabase" call fails, altough this function exists. I tried to get some error information with a try-catch block, but the call fails "silently". After investigating this function (displaying its content in a textarea) I found creation of an Database-Object inside an try-catch block.
When I try to create such Database object for myself, it throws the following exception: ReferenceError: "Database" is not defined.
Do you have any ideas?
I'm running the widget in an Curve 8520 Simulator, OS Version 220.127.116.119, Simulator Version 18.104.22.168.
If you need further information, please ask!
Thank you for your help, and I hope my english isnt too bad. (It's not my native language)
Solved! Go to Solution.
08-24-2010 08:23 AM - edited 08-24-2010 08:24 AM
Are you simulating an SD Card being inserted in the simulator? A SQLite database on 5.0 must either be stored on an inserted SD Card or a built in eMMC card. A built in eMMC card is only on the Storm devices and Bold 9000.
If you simulate an SD card on your curve simulator, the database should be created
10-29-2010 11:17 AM
So what you are saying is that in order to have SQLite working my end users MUST have an SD card? Do they typically come with one?