08-17-2010 11:20 AM
Well, I think I know where the Gears db is being created and where its supposed to be created, but it's not there.
Windows XP Pro, VS2008 web plugin 2.0, 9550 simulator, v184.108.40.2063.
When I do a try-catch around the create() and db.open() methods, I do not catch an exception. Yet there is no database in the simulator's system directory (\Program Files\Research In Motion\Blackberry Smartphone Simulators 5.0.0\220.127.116.113\system\appdata\rim\gears\V2k......
This brings up a secondary question: what's the best workflow with the simulators? I've been running in either debug or release mode and letting the simulator start that way. I then set the SD card location (should this be file or folder and why the option?).
08-17-2010 12:40 PM
From what I understand, if you create a Gears DB and it goes to the eMMC of the device, it is not going to show up on your windows file system.
It will only show up in the BlackBerry file system that you can view in the simulator itself. The file doesn't physically get created as a separate file on your PC.
When you emulate an SD Card with the simulator by providing a root path on your PC, and the device simulator you are using is not a device that has a built in eMMC card, then it will create the file on your PC.
08-17-2010 12:47 PM
Thanks Tim. That gets me closer to understanding. How would I know whether it's eMMC or being created otherwise? Being from the Windows world, I'm not familiar with how to locate a file on a Blackberry device.
08-17-2010 12:55 PM
Typically in the "Applications" folder on the device you will find the File Browser. When you open up the file browser you should be able to browse to "/home/user/appdata/rim/gears/" and find your database.
08-17-2010 02:17 PM
Sure enough, it shows the db in the path you gave .. on the device. Clicking on the file in the Blackberry shows a path of /Device Memory/home/users/appdata/rim/gears/QWd.../local--
Some of the other simulators that I had run did indeed show in the Windows file system. Why the difference?