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

Native Development

Reply
Developer
Posts: 48
Registered: ‎10-11-2012
My Device: Z10
My Carrier: none

Re: Access to app's working directory


Mitch99 wrote:

 

So - I then resorted to writing to the home directory of JS, "assets/charts", and since the files are now in the same directory, and using url: "graphData.xml", it finally WORKS! So - given this, I think there's something in JS that is not friendly to relative paths and path re-directions. This solution works for me, so I'll keep it as is.


So, you can write in the assets folder ? right ? But this folder is marked as readonly

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Access to app's working directory

No you can only write in the assets folder under debug, your app will crash if you attempt to do this on a release build.


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.