I have created one application and only design created and install in my Strom device but when i want to show this desgn in only portrate than 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 sign this application before install in device..
does it work properly in the simulator?
ReplyDeleteOtherwise, 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
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:
ReplyDeleteWarning!: 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).