嗨,我的应用程序正在逼近。
错误 - 视图未附加到窗口管理器。
//asynctask for groupnames
class GroupDataLoad extends AsyncTask<Void, Void, Void>{
@Override
protected void onPreExecute() {
// TODO Auto-generated method stub
super.onPreExecute();
mCustomProgressDialog = CustomProgressDialog.createDialog(
UserMenuActivity.this, "", "");
mCustomProgressDialog.show();
mCustomProgressDialog.setCancelable(false);
}
@Override
protected Void doInBackground(Void... params) {
// TODO Auto-generated method stub
dbHelper = new DatabaseHelper(UserMenuActivity.this);
//getting the group list
mXMPPConn.getContactList();
ParseValues.parsedGroupList.clear();
APIVariables apiVariables = new APIVariables();
ParseValues.getGroupList(apiVariables.getGroupList("abc.com"));
int size = ParseValues.parsedGroupList.size();
for(int i=0;i<size;i++){
String groupName = ParseValues.parsedGroupList.get(i).getGroup_name();
if(CGMStaticVariable.CommonConnection.isConnected())
{
createRoom(groupName, CGMStaticVariable.CommonConnection);
}
}
return null;
}
@Override
protected void onPostExecute(Void result) {
// TODO Auto-generated method stub
super.onPostExecute(result);
setExpandableListView();
mCustomProgressDialog.dismiss();
}
}
加载开始时,我通过单击状态栏中的通知来更改前台页面,当我单击 BACK 按钮再次进入相同的活动时,它崩溃说 - “视图未附加到窗口管理器”
我无法弄清楚问题到底是什么
谢谢