09-26-2011 06:11 AM
We are working on a BlackBerry application which reads contactless cards. We have used the “nfcreaderdemo” from the BB 7.0 SDK and it works fine on our BlackBerry Bold 9900 phone. Our application uses SQLite and network connection for webservice calls. When we integrate the same NFC reader demo code with our application, it gives following exception to occur on the mobile device screen:
net.rim.device.api.system.ControlledAccessExceptio
Removing some screens and associated database calls from the application build removes the exception. However any addition of more screens reproduces the problem.
We have tried running the application in Debug mode, through javaloader and also through OTA. However the same problem is encountered each time.
The size of the cod file build for our application is 1,545 KB.
Could anyone please give us some pointers as to what could be causing this exception to occur? Any help will be highly appreciated as this is crucial for our development.
09-26-2011 06:44 AM
Hi,
I think you can go to Options->Applications..Select your application from list and click on Edit Permissions.Change the things which are "Custom" to "Allow",save it and run your application.
09-26-2011 07:10 AM
09-26-2011 10:49 AM
The ControlAccessException occurs only in SIMULATOR not on DEVICE. Because You are install the application only once and run many times in Device. But not like that in SIMULATOR, you are Debugging everytime.
When ever you get ControllAccessException simple close the simulator and run again. Because you are working on database that's why you are getting somany times. There is no problem in COD file size. We run our projects which is having in MBs.
If you are geting so many times clean the simulator and run again.
==================================================
Feel free to click THUMB symbol.
09-27-2011 07:41 AM
11-22-2011 12:23 PM
Any suggestions to solve this problem?
11-22-2011 07:54 PM
Im also having this problem. I can confirm that I only register the listener once. Hope someone has a suggestion.
12-07-2011 03:34 AM
This is a known issue which is fixed in later device software builds as follows:
- 9900 (Bold): fixed in OS version 7.0.0.337 (bundle 1603)
- 9360 (Curve) fixed at 7.0.0.360 (bundle 1699).
See http://supportforums.blackberry.com/t5/Java-Develo