Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
jasbeern
Posts: 17
Registered: ‎06-17-2010
My Device: C
My Carrier: SE

Re: SD card in SQLite

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.

Please use plain text.
Developer
TobiasReaper
Posts: 85
Registered: ‎05-03-2010
My Device: Not Specified

Re: SD card in SQLite

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.

Please use plain text.
New Contributor
nagarajub
Posts: 4
Registered: ‎07-20-2010
My Device: Not Specified

Re: SD card in SQLite

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

Please use plain text.
Contributor
vituvian
Posts: 17
Registered: ‎12-01-2010
My Device: Not Specified

Re: SD card in SQLite

[ Edited ]
 
Please use plain text.
Developer
peter_strange
Posts: 19,603
Registered: ‎07-14-2008
My Device: Not Specified

Re: SD card in SQLite

Duplicate of:

http://supportforums.blackberry.com/t5/Java-Development/any-difference-in-accessing-sqlite-in-touch-...

 

Please only ask a question once. 

 

Also it is not polite to hijack other Threads. 

Please use plain text.
Contributor
vituvian
Posts: 17
Registered: ‎12-01-2010
My Device: Not Specified

Re: SD card in SQLite

i m sorry ... is there someway i can delete my post !! :mansad:

Please use plain text.
Developer
peter_strange
Posts: 19,603
Registered: ‎07-14-2008
My Device: Not Specified

Re: SD card in SQLite

I think the moderators can delete posts, but don't worry about it. 

Please use plain text.
Contributor
itthipon
Posts: 14
Registered: ‎09-09-2010
My Device: Not Specified

Re: SD card in SQLite

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

 

 

Please use plain text.
New Contributor
ashish_nimawat
Posts: 6
Registered: ‎03-31-2014
My Device: 9900
My Carrier: Blackberry

Re: SD card in SQLite

[ Edited ]

Hi Guys,

 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:

http://www.blackberry.com/go/sqlitedemo

 

 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.

Please use plain text.
Developer
peter_strange
Posts: 19,603
Registered: ‎07-14-2008
My Device: Not Specified

Re: SD card in SQLite

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.

 

http://supportforums.blackberry.com/t5/Java-Development/How-to-configure-Eclipse-environment-for-SD-...

 

Do always try searching the Search box for solutions before asking questions. 

Please use plain text.