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
Highlighted
Contributor
Posts: 34
Registered: ‎12-20-2010
My Device: DevAlpha Beta 2
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

BlackBerry Development Advisor
Posts: 668
Registered: ‎11-29-2011
My Device: developer
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

Contributor
Posts: 34
Registered: ‎12-20-2010
My Device: DevAlpha Beta 2
My Carrier: Orange

Re: max size allowed to playbook application sandbox

Thank you for your answer! I will consider the options you gave me.
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: max size allowed to playbook application sandbox

I've gone about 3GB on the PlayBook without any issues (app-storage).
BlackBerry Development Advisor
Posts: 668
Registered: ‎11-29-2011
My Device: developer
My Carrier: other

Re: max size allowed to playbook application sandbox

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