Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
Developer
jmace
Posts: 482
Registered: 10-24-2008
My Carrier: AT&T

sqlite file location on simulator

If I create a sqlite DB during a debug session in the simulator, can I get to that phsical file somewhere on my machine to view the contents of the DB. I'm having some strange behavior and I would like to check the DB before and after a certain point in my application.

_________________________________________
www.jasonmace.com/blackberry
Please use plain text.
Developer
Posts: 107
Registered: 09-25-2008

Re: sqlite file location on simulator

If I search for "gears on blackberry" on google, I get a result snippet that says: "On the internal media card, if one exists on the BlackBerry device, database files are stored in the /home/user/appdata/rim/gears/ folder." The actual page gives me a 404 error though.

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,555
Registered: 10-16-2008
My Carrier: Rogers

Re: sqlite file location on simulator

If you go to the Database Object from the Gears section of the API document, it lists the paths if the DB is stored on the SD card or built in media card

 

http://docs.blackberry.com/en/developers/deliverables/11850/index.html?name=API+Reference+-+BlackBer...

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
Developer
jmace
Posts: 482
Registered: 10-24-2008
My Carrier: AT&T

Re: sqlite file location on simulator

Okay, I've gone into the simulator and set a new directory for the SD card. Next I removed my application from the simulator and then reloaded it. After running my application which creates a DB and several tables... I checked the SD card directory. I did not see any of the mentioned file paths in the documentation.

 

I do have  SD Card/BlackBerry/System

 

but the system folder is blank.

 

 

_________________________________________
www.jasonmace.com/blackberry
Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,555
Registered: 10-16-2008
My Carrier: Rogers

Re: sqlite file location on simulator

We just checked with the Gears author here at RIM, and it turns out that the internal media card is tried first and then the SD card.. so the documentation is incorrect.  We will be updating the documentation shortly

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.