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
BlackBerry Development Advisor
Posts: 15,084
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Compare persistent and file store

Quote from previous forum:


Guest
Compare persistent and file store
Posted: Jul 15, 2008 5:28 AM
 
Which one is faster between persistent store and file store?


Access speeds should be similar.  Instead, you could look at other criteria for your choice, such as:

 

Can you application deal with a micro SD card that is not available (user removes it or doesn't have one)?

Are you storing a large amount of data.  Micro SD cards have more storage than what is built into the BlackBerry.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 412
Registered: ‎09-12-2008
My Device: 9000 9810

Re: Compare persistent and file store

[ Edited ]

I could not acomplish storing/reading files on a bb device. I could only do It on SD card.

 

Am I doing something wrong or is that the philosophy in general?

 

Message Edited by myraddin on 10-22-2008 11:18 AM


"Listen carefully, I shall say this only once"
BlackBerry Development Advisor
Posts: 15,084
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: Compare persistent and file store

Both are possible.  What problem are you having?
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 412
Registered: ‎09-12-2008
My Device: 9000 9810

Re: Compare persistent and file store

well, thread Create a folder in file system certainly helped :smileyhappy:

 

My problem was trying to create a folder in a device (not SD card). But I used /storage/ as path.

 

Now (through hints from aforementioned thred) I understand that I cannot create folder in that - root - path.

 

So now I am using:

FileConnection fc2 = null;

try

{

fc2 = (FileConnection) Connector.open("file:///store/home/user/MYFOLDER/", Connector.READ_WRITE);

if (fc2.exists())

{

tf.setText(tf.getText()+"\n"+"store/home/user/MYFOLDER Path found");

}

else

{

tf.setText(tf.getText()+"\n"+"attempting to create store/home/user/MYFOLDER");

fc2.mkdir();

tf.setText(tf.getText()+"\n"+"created...");

}

}

catch (Exception e)

{

tf.setText(tf.getText()+"\n"+"Error: " + e.getMessage());

 

 My previous tries were using: "file:///store/MYFOLDER/"

 

Can you point me to the doc where I could have seen that information (regarding file system limitation such as not using root path) ? 

Am I using the right place to store my application settings (e.g. store/home/user/MYFOLDER/)

 

Thank you for your interest and help.



"Listen carefully, I shall say this only once"