为什么我的Blackberry java应用程序会自动重启?
我想打开为什么我的Blackberry java应用程序会自动重启?,blackberry,java-me,invocation,Blackberry,Java Me,Invocation,我想打开ContentHandler以全屏显示图像 Invocation invocation = new Invocation(imageFilePath); invocation.setAction(ContentHandler.ACTION_OPEN); Registry _registry = Registry .getRegistry(mypackagename.myuiapplication); _registry.invoke(invocation); 上面的代码工作得非常好
ContentHandler
以全屏显示图像
Invocation invocation = new Invocation(imageFilePath);
invocation.setAction(ContentHandler.ACTION_OPEN);
Registry _registry = Registry .getRegistry(mypackagename.myuiapplication);
_registry.invoke(invocation);
上面的代码工作得非常好。但是当我全屏查看图像并退出应用程序时。但我的应用程序会自动重新打开
为什么我的应用程序显示出这种有线行为?我希望我得到了解决方案。应用程序等待调用响应
Invocation invocation = new Invocation(imageFilePath);
invocation.setAction(ContentHandler.ACTION_OPEN);
Registry _registry = Registry .getRegistry(mypackagename.myuiapplication);
_registry.setListener(responseListener);
registry.cancelGetResponse();
_registry.invoke(invocation);
private ResponseListener responseListener = new ResponseListener() {
public void invocationResponseNotify(Registry registry) {
registry.getResponse(false);
}
};
检查日志。可能是因为内存问题