droid.bb.dev
droid.bb.dev

Reputation: 5

attemps to access secure API in Blackberry

I have created one application and only design created and install in my Storm device but when i want to show this desgn in only portrate then I wrote this line

Ui.getUiEngineInstance().setAcceptableDirections(Display.DIRECTION_PORTRAIT);

and install in device. I got error:

attemps to access secure API

I have no idea what can I do? I had already signed this application before installing in the device.

Upvotes: 0

Views: 1299

Answers (3)

zankyr
zankyr

Reputation: 3

RIM requires several signatures to access protected classes (you can find a complete list on Java APIs with controlled access).

You can request signature files using the form on the BB site (it request your name, surname, company and device's PIN). Once you got the signatures, you have to install them on Eclipse in order to load the application on a device. Therefore, accessing API like Crypto (developed by Certicom) needs another file, .RCC, but you have to request this file mailing the developer support of BB.

Upvotes: 0

Vit Khudenko
Vit Khudenko

Reputation: 28418

When you build the project check the log output - if your code uses any secure API the log will have an evidence of this by saying smth like:

Warning!: Reference to class: net.rim.device.api.system.Display requires signing with key: RIM Runtime API

If you get similar warning this means you need to sign you code file with signing keys got from RIM to be able to run the app on a real device (vs. simulator).

Upvotes: 2

Dheeraj Jami
Dheeraj Jami

Reputation: 190

does it work properly in the simulator?

Otherwise, try to delete the cod files and then run it on the simulator and then sign it properly

Also check the status during the signing process there may be some errors while signing

if it doesnot solve the problem,try cleaning the project and repeating the above process

Let me know if the problem is solved

Upvotes: 1

Related Questions