0
我有一个应用程序,测试变量是否为null。如果它是空的,我显示一个对话框,设置变量。问题在于活动在框显示时继续执行。我希望我的活动挂起并等待对话框的结果,然后继续。我该如何实现这个目标?如何暂停对话框的结果的活动
if(nfcscannerapplication.getCompId() == null ||
nfcscannerapplication.getCompId().trim().equalsIgnoreCase("null")){
Log.e(TAG, "compid null***********");
showPasswordDialogBox();
}else{
Log.e(TAG, "compid not null***********");
String[] paramsCompOpt = new String[]{nfcscannerapplication.getCompId()};
AsyncGetCompanyOptions agco = new AsyncGetCompanyOptions();
agco.execute(paramsCompOpt);
}