Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
12-16-2012 02:44 PM - edited 12-16-2012 02:55 PM
Is there any way to get a list of directories and files from a directory inside my app?(in BB10)
E.g to get a a list of directory names from "local:///photos" (or "file://photos"), the reason I want to do this is because I want to have a big list of files and directories inside a directory embeded in my app, but I don't want to mantain an internal list of references to them.
I tried using a directory reader + unsandboxed filesystem but I can't seem to find the directory where the app is( I initially supposed is blackberry.io.home)
12-17-2012 10:50 AM
I've tried that example yesterday, but I couldn't manage to get it work in a sandboxed enviroment. It seems I need to put sandbox to false even to read .home directory, in the docs it says only for .sharedFolder you need to unsandbox the enviroment.
Anyway how to read from the .sharedFolder the contents embeded in my app, the files and directory structure packaged with my app?
PS: If you haven't seen this post yet, please take a look: http://supportforums.blackberry.com/t5/Web-and-Web
12-17-2012 11:14 AM
I also know that
But I can't read the contents of a directory within my app, programatically. I want to be able to add files and folders within my app without mantaining a reference to them within my app and without predefined names. My question is how can I read the virtual folder "local://' using the APIs?