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

Java Development

Reply
Developer
Developer
rab
Posts: 283
Registered: ‎07-22-2008
My Device: Not Specified

SDCard access permission

I have an application that when it runs, it checks for the existance of a specific file.

I do check if the application has a file Permission. I get back that PERMISSION_FILE_API is set to :allow.

Then when I check for file existance of the file, it prompt with a dialog notifying/asking the user  that my application is trying to access the SDCard.

This happens when I run after a fresh install.

Is'nt that, if PERMISSION_FILE_API is set to allow, the app should not prompt the user?

If it is not the case, so what permission controls the access to SDCard?

 

Thanks

Please use plain text.
Developer
Developer
rab
Posts: 283
Registered: ‎07-22-2008
My Device: Not Specified

Re: SDCard access permission

More details:

 

The phone that has this behavior is connected to a BES. I noticed that if Company_Network permission is set to prompt, this behavior will happen. If the default Company Network connections is set to "Allow", it does not happen ( i.e. the app will not prompt when acessing the SDCard).

 

So, what is the relation between accessing the SDCard permission and the Company Network connections permission?

 

Thanks.

Please use plain text.
Administrator
MSohm
Posts: 14,563
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Re: SDCard access permission

What BlackBerry model and handheld software version are you testing on?  You can see this under Options, About on the BlackBerry.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
Developer
rab
Posts: 283
Registered: ‎07-22-2008
My Device: Not Specified

Re: SDCard access permission

I am testing this on a BB 8830

Wireless Handheld (GPRS,CDMA)

 v4.2.2.66 (platform 3.0.0.45) 

verizon carrier.

 

 

Thanks

Please use plain text.
Administrator
MSohm
Posts: 14,563
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Re: SDCard access permission

Are you able to reproduce this in BlackBerry handheld software version 4.5.0?

 

Do you have a BlackBerry running version 4.5.0 you can test on?  Alternatively you can upgrade your existing BlackBerry handheld, assuming your carrier has made version 4.5.0 available.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
Developer
rab
Posts: 283
Registered: ‎07-22-2008
My Device: Not Specified

Re: SDCard access permission

I can reproduce it on 4.2.1.

I cannot use 4.5 because most of the users of our application are still using 4.2.x.

It is not easy to ask them to upgrade, plus that we are not sure that all carriers have the new version available.

 

 

Please use plain text.
Administrator
MSohm
Posts: 14,563
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Re: SDCard access permission

I was able to reproduce this issue in BlackBerry handheld software version 4.2.1 and have verified that it is fixed in version 4.5.0.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.