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

Native Development

Reply
Contributor
nico411
Posts: 34
Registered: ‎12-20-2010
My Carrier: Orange
Accepted Solution

max size allowed to playbook application sandbox

Hello,

 

I couldn't find the information in the BB documentation so I'm asking you.

Is there any maximum size allowed to the playbook application sandbox ?

Indeed, I would like to download files and store them to the data folder of my app and I would like to know if I will be limited with the size.

Plus, is it possible to create subfolders in the data folder ?

 

Thank you,

 

Nicolas

Please use plain text.
BlackBerry Development Advisor
smcveigh
Posts: 544
Registered: ‎11-29-2011
My Carrier: other

Re: max size allowed to playbook application sandbox

Subfolders in data/ should be doable.

 

Are you talking about gigabytes of data?

 

If you are going to have files persist there for a long time (eg. you fetched a bunch of mp3 files for some reason), then it would be nice if your app would clean this cache out occasionally, or provide the user with a means of doing so via your app.

The reason I suggest this is because users don't have access to your app sandbox, so they may not be able to find out why they are running low on disk space and correct the problem.  Only uninstalling your app will cause the sandbox data to be deleted.

Your other option would be to use an appropriate folder under shared/ somewhere (maybe shared/downloads/your_app_name).  This way users would be free to clean up files on their own, however it has the downside that when your app is uninstalled, the files will remain and use up disk space.

The tmp/ folder in your sandbox can also be used to store large files, but it is cleaned out when your app exits.

 

Cheers,

Sean

Please use plain text.
Contributor
nico411
Posts: 34
Registered: ‎12-20-2010
My Carrier: Orange

Re: max size allowed to playbook application sandbox

Thank you for your answer! I will consider the options you gave me.
Please use plain text.
Developer
jtegen
Posts: 6,156
Registered: ‎10-27-2010
My Carrier: AT&T

Re: max size allowed to playbook application sandbox

I've gone about 3GB on the PlayBook without any issues (app-storage).
Please use plain text.
BlackBerry Development Advisor
smcveigh
Posts: 544
Registered: ‎11-29-2011
My Carrier: other

Re: max size allowed to playbook application sandbox

I can confirm there is no limit on appdata storage currently.

Please use plain text.