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)
Cheers.
07-26-2010 09:48 AM
hi,
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 12:48 AM - edited 01-13-2011 06:09 AM
01-13-2011 04:23 AM
Duplicate of:
Please only ask a question once.
Also it is not polite to hijack other Threads.
01-13-2011 06:09 AM
i m sorry ... is there someway i can delete my post !! ![]()
01-13-2011 06:52 AM
I think the moderators can delete posts, but don't worry about it.
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?
Thanks