12-04-2009 02:16 PM
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.
12-04-2009 03:43 PM
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.
12-07-2009 12:26 PM
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?
12-08-2009 02:53 AM
12 is INVALID_OPERATION sounds strange.
Can you post the code?
12-22-2009 01:29 PM
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.