07-25-2009 10:51 PM
I have some access denied problems while using my Application in Blackberry Bold phone (Throws ControlledAccessException).
But curve phones did not shows this problem.
(Only blakberry Bold Real phones have this problem .Bold simulator did not see any problems while running the application)
Think this is caused while calling the methods in CodeModuleManager class . The error is "net.rim.device.api.system.controlledaccessexceptio
Another issue is , i tried to set the access permission in the eclipse but the option list is not showing .. its just blank
In the eclip[se Blackberry - >Configure blackberry Workspace - >Code Signing . Here its showing Allow access to API's which require the following keys.
But there is no options listing in the eclipse its just blank. I am using Vista Operating System . I tried acces setting in the phone also , i turned it all allow for "options-> advance options->applications" . This not helped me.
. In the actual device using this application, we cannot tell them to set all permission in the phone. I need to fix this programatically.
Please help me to solve this problem
Thanks and regards
Solved! Go to Solution.
07-25-2009 11:47 PM
The application permissions must be set on the device.
You can use ApplicationPermissionsManager to request these permissions, but they must be approved by the user.
You cannot programmatically set permissions without the user's approval.
07-26-2009 12:15 AM
Thank you for the quick action.
So we need to tell the application download user to set the permissions right. But i set the application permission in the
Advanced options - > Applications - > My application - > Permissions - >
UserData Allow -> save, like this . After that the same exception is throwing. What else i need to do with the same.
I found some other application uses the same functionality " Installed application List" , for these application we dont need to set the permissions. How those application are working.
Please give me idea to solve this issue
Thanks and regards
07-26-2009 01:03 AM
You can use AplicationPermissionsManager class and ApplicationPermissions class.
See Javadoc for details.
Also have a look at the sample "applicationpermissionsdemo" shipped with JDE.
07-26-2009 10:18 AM
Is the application signed?
You cannot access CodeModuleManager unless you sign the application.
You don't see the error on the simulator because it does not enforce security.