I use following line of code in my blackberry java application (6.0)

private static final int HPADDING = Display.getWidth() <= 320 ? 6 : 8;

but Eclipse gives me a warning saying That :

Signing Required: RIM Runtime API (0x52525400): Protected Class     
net.rim.device.api.system.Display

The application installed on the device but it doesn't run. So I want to know that Is there any method to do this without signing the application. I'm very much new to blackberry please help me.

Thank you!

有帮助吗?

解决方案

If your code contains a reference to Signed API then you have to sign your application before installing it on actual device. Unsigned application that uses Signed API can run on a simulator but won't launch on an actual device.

Apply for signing keys here: http://www.blackberry.com/go/codesigning

You will receive an email with attached signing keys. Follow the instructions in the received email to install these keys and use them to sign your application.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top