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

Reply
Trusted Contributor
Vibes
Posts: 214
Registered: ‎03-14-2012
My Device: PlayBook 2.0
My Carrier: AT&T

What permission is required to write and store data on device?

Hi,

 

what permission is required to write and store data on a device?

I want to save some user preferences as a .xml file and encrypted data via encrypted local storage.

 

(On Android I used this one: <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>)

 

Thanks! :smileyhappy:

 

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: What permission is required to write and store data on device?

User preferences are typically stored with the app's data storage area, in which case, you do not have to set a permission level (protected sandbox).

 

If for some reason, you want to store data in the shared file system where any app has access, then you need to set:

 

<permission>access_shared</permission>

 

In the bar-descriptor.xml file

 

Please use plain text.
Trusted Contributor
Vibes
Posts: 214
Registered: ‎03-14-2012
My Device: PlayBook 2.0
My Carrier: AT&T

Re: What permission is required to write and store data on device?

[ Edited ]

Awesome, thanks for your quick answer! :smileyhappy:

 

A short question on <permission>access_internet</permission>

I want to send an email from my app. To make that happen, a .php file will get called on a server via https.

Do I need the access_internet permission to make it work?

 

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: What permission is required to write and store data on device?

Please use plain text.
Developer
SangramPatil
Posts: 271
Registered: ‎01-21-2013
My Device: BB10 Dev Aplha
My Carrier: -

Re: What permission is required to write and store data on device?

If you just want to save the preferences, you should ideally use Shared Objects. It is fast and very easy.

Please use plain text.