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

Adobe AIR Development

Reply
Contributor
Eugeny89
Posts: 37
Registered: ‎03-10-2011

where can I put files created by my app

Hi all,

 

when I save document edited by my app I get 'Permition denied' error. Where can I save the document? How can I get that folder?

Please use plain text.
Developer
Acenet
Posts: 248
Registered: ‎11-02-2010
My Carrier: -

Re: where can I put files created by my app

Hello,

  you can't write in the App. directory. You should use:

File.applicationStorageDirectory
JC
Please use plain text.
Developer
jtegen
Posts: 6,149
Registered: ‎10-27-2010
My Carrier: AT&T

Re: where can I put files created by my app

If the files are application specific, like preferences, they can go in the app-storage directory.  Files in this directory will get removed when the application is uninstalled, but remain if the application just get upgraded/re-installed.

 

Files that are user data specific (e.g. photos, database, documents) should go somewhere in the document directory (AKA shared directory).  There are sub folders for things like photos, videos, etc.

Please use plain text.