Eclipse Display.show在恢复后台后有时不向上购物
这是我的start()方法的一部分 恢复背景后,IFs中的对话框有时不会显示,即使必须显示。不管怎样,当对话框没有显示时,如果我点击手机屏幕的中心,对话框就会显示出来Eclipse Display.show在恢复后台后有时不向上购物,eclipse,codenameone,Eclipse,Codenameone,这是我的start()方法的一部分 恢复背景后,IFs中的对话框有时不会显示,即使必须显示。不管怎样,当对话框没有显示时,如果我点击手机屏幕的中心,对话框就会显示出来 使用模拟器时,对话框始终显示。这只发生在我的android手机上。我们建议重新创建对话框,不要重用对话框实例 Android在生命周期处理方面有点问题,我们的构建服务器实际上对此有了改进。我在哪里可以查看即将发布的codenameone构建(日期),看看对话框问题是否得到解决?否则,请更改我的代码以重新创建对话框。此时生成服务器已
使用模拟器时,对话框始终显示。这只发生在我的android手机上。我们建议重新创建
对话框
,不要重用对话框实例
Android在生命周期处理方面有点问题,我们的构建服务器实际上对此有了改进。我在哪里可以查看即将发布的codenameone构建(日期),看看对话框问题是否得到解决?否则,请更改我的代码以重新创建对话框。此时生成服务器已更新。因此,如果仍然存在一个问题,那么这是另一个问题。
if(sm.user.getRole()==0){
try {
sm.progress();
String str = WebServiceProxy.employerRequests(sm.driver.getDriverid());
sm.dialog.dispose();
//sm.closecurrentdialog();
if(str!=null){
Result results = Result.fromContent(str, Result.XML);
sm.numberofexpiredemployerrequests=results.getAsInteger("/expireddriverrequests");
if(sm.numberofexpiredemployerrequests!=0)
Dialog.show("Expired Employer Requests", sm.numberofexpiredemployerrequests+" employer requests have expired", "OK", null);
sm.numberofemployerrequests=results.getSizeOfArray("/driverrequest");
if(sm.numberofemployerrequests!=0)
Dialog.show("Pending Employer Requests", "Employer(s) would like your response within 5 minutes", "OK", null);
sm.openMainForm(sm.numberofemployerrequests, sm.numberofexpiredemployerrequests);
}
} catch (IOException e) {
throw new DeliveryDriverException("Error on employerRequests (My Application)" );
}
}
return;