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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Developer
shivhum
Posts: 6
Registered: ‎12-04-2009

Tour - root directory

Hi, I am new to BB development. I develped an app that stores an xml file in memory (file:///store/sample). This works in BOLD but doesn't work in TOUR. I couldn't figure out the directory structure for built-in memory in TOUR.

Here's my questions.

 

1) Where is the best place to store files (about 1MB) in BB device (SDCard or ///store or ???) ? I need to store images so the app fast loads each time & updates these images in background.

2) How to make this (storing & retrieving files) work in all BB devices?

3) I built my app in 4.6.0. Do I have to do anything to make it compatible for devices that uses other versions?

 

Any help would be really appreciated. I have been searching the net & debugging this for some time now.

 

Thanks,

Jaya

 

Please use plain text.
Developer
rcmaniac25
Posts: 1,789
Registered: ‎04-28-2009
My Carrier: Verizon

Re: Tour - root directory

What error are you getting? Does the directory "sample" exist on the TOUR? If it doesn't then you won't be able to make the file.

 

You shouldn't need to recompile under a newer version.

------------------------------------------------------------
Three simple rules:
1. Please use the search bar before making new posts.
2. Kudo posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Please use plain text.
New Developer
shivhum
Posts: 6
Registered: ‎12-04-2009

Re: Tour - root directory

The directory doesn't exist but when I try to create it in the code, it's giving "File system error (12)". Is there a setting in the device to provide permission for the app to write to built-in memory?

Please use plain text.
Developer
dpreussler
Posts: 212
Registered: ‎07-18-2008

Re: Tour - root directory

12 is INVALID_OPERATION sounds strange.

Can you post the code?

If your problem was solved, please mark answer as "Accepted solution"
If your want to thank, click the "kudo" symbol
___________
visit me: http://mobilejavadevelopment.blogspot.com/
visit the Berlin BlackBerry Developer Group: http://berlinblackberrydevelopers.blogspot.com/
Please use plain text.
New Developer
shivhum
Posts: 6
Registered: ‎12-04-2009

Re: Tour - root directory

Thanks for replying to my post.  I was trying to create a directory under file:///store and that was giving me error. When I changed it to file:///store/home/user/documents, it worked.

 

 

Please use plain text.