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

Adobe AIR Development


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.


Reply
Developer
Posts: 151
Registered: ‎12-06-2010
My Device: Not Specified

Re: userDirectory

2 years later..

 

Has userDirectory been denied or is it just me?

 

I am not able to access it. Denied.

Highlighted
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: userDirectory

Probably not a good idea to use that anyway since it has never been discussed if BB devices will support multiple users. Best to use the File.documentsDirectory (for shared things) and File.applicationStorageDirectory, for app specific things.
Developer
Posts: 151
Registered: ‎12-06-2010
My Device: Not Specified

Re: userDirectory

Thank you for the update.

Contributor
Posts: 23
Registered: ‎05-04-2012
My Device: Playbook, 9670, 9800, 9350
My Carrier: Telus

Re: userDirectory

 

The applicationStorage directory doesn't require any special permissions from the user to access -- it's great to store configuration and non-user access data (like thumbnails or other 'temporary' type data) since the data gets automatically cleared if the app is deleted. I use it for all my application data as the user cannot access the directory data location to review the data. You'll notice that from your PC you can access the 'general' shared directories of the BBOS device (like 'documents' or 'downloads') but not the application storage locations or user identity locations.

 

The userDirectory refers to the same data as you can acces through the explorer in windows so there's no risk in using that directory in your applications in my mind - those are managed user data locations. This is my opinion. Access to this directory needs to be accepted by the user (through the property <permission>access_shared</permission> in the bar-descriptor.xml file).

 

The userDirectory doesn't refer to any secure data locations (no contact info or system properies etc) just shared user data.

Developer
Posts: 151
Registered: ‎12-06-2010
My Device: Not Specified

Re: userDirectory

Does the applicationStorage directory get automatically cleared if the app is Updated?

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: userDirectory

app-storage does not get removed on an application update, but it is deleted when the app is deleted.