06-24-2010 11:32 AM
Thanks to all for providing me possible solutions. It worked.
In sample file there is one method: readAndWriteDatabaseFile(..
Whats the purpose of this method, am getting file not found exception while using this method but the file exist at that path. So for time being I have commented this method.
One more thing that I have noticed: when I run the simulator for the first time it does not get SDCard but I can see the folder mapped in Debug Configurations and in Add SD Card options of simulator. When I run my application again it gets the SDCard.
Once again Thanks to all as I am only one week old BlackBerry developer and these forums and docs are helping me great.
06-24-2010 11:59 AM
Glad it worked out for you Jasbeern.
Not quite sure about the code sample query of yours, cuz I haven't looked into it in detail. I simply refer to the SQLite doc and it works for me.
Regarding your other query, what exactly do you mean by "it does not get the SDcard". If its properly mapped in the run or debug configuration and if you can see it in the Add Sdcard option of the simulator then its indeed already attached to your simulator. What you can do is, as soon as your simulator loads do the following steps to confirm if the SDcard and the DB is available to the Simulator
1. In the media application, press the Menu key.
2. Click Explore.
3. Navigate to the folder that should contain the database file to verify that the database file is in that folder.
(This can be found in the BlackBerry SQLite Guide)
07-26-2010 09:48 AM
i am creating a application using java in blackberry i am not able to establish a connection with the database
i have done all things such as change sd card etc .i am able to create database but not acess.
please help me
thanking you in advance
01-13-2011 04:23 AM
Please only ask a question once.
Also it is not polite to hijack other Threads.
06-14-2011 10:14 AM
I am also having the similar problem.
I create an app on OS 5 that will check if SQLite database exists or not in a thread from first screen. The check is done by calling DatabaseFactory.exists("databaseName"). Everytime in simulator (OS 5) this method throws exception with message "Invalid path name. Path does not contains a proper root list. See FileSystemRegistry Class..." . If i just swallow that exception and it is the case that databse exists, on other screens of the app, I can insert/update/delete database normally.
I don't find the same problem on Torch device which is running on OS 6.
Does anybody have some idea abou this to help me out?
04-08-2014 10:02 AM - edited 04-08-2014 10:04 AM
I know this is a stupid one but I am stuck.
I am working on SQLite db in blackberry of blackberry JRE version 7.1.0.
I have downloaded SQLite demo application from following link:
When i am running it using eclipse on my Simulator 9900 it shows popup with message
"This application requires an SD card to be present. Exiting application...".
Is there any configuration that I have to do with simulator or eclipse?
Please help me.
04-08-2014 11:38 AM
There used to be a KB Article about doing it, can't find it atm. You might search and find it yourself in which case, please point us at it.
But the general idea is that you tell the Simulator to use a file or directory on your PC as its SD Card.
If you launch a SImualtor, you can do this using the Simulate menu you will find on te menu bar (Windows Menu), then choose "Change SD Card".
The folloiwing Thread suggests you can do this directly from Eclipse without starting the Simulator, but I have never done this.
Do always try searching the Search box for solutions before asking questions.