在BlackBerry Java
项目中,我尝试添加一个功能,以确保应用程序可以在后台运行。它在BB
的模拟器上正常运行,但在设备中运行时失败并出现错误。
Error: Module 'My_Project' must be signed with the RIM Runtime Code Signing Key (RTT)
问题出现在以下代码中:
private ApplicationIndicatorRegistry reg;
private ApplicationIndicator indicator;
public static ApplicationIndicator AppIndi;
public AfmobiMobile() {
testMobile = this;
reg=ApplicationIndicatorRegistry.getInstance();
EncodedImage img=EncodedImage.getEncodedImageResource("ic2.png");
ApplicationIcon icon =new ApplicationIcon(img);
indicator=reg.register(icon, false, true);
AppIndi=reg.getApplicationIndicator();
}
然后,此卷的所有打开句柄都将无效。