Alertdialog.builder Builder = new Alertdialog.builder (_context);
Builder.settitle ("Warm Tips"). Setmessage ("Your account is locked, please contact the closed door!") ")
. Setpositivebutton ("OK",
New Dialoginterface.onclicklistener () {
public void OnClick (Dialoginterface dialog,
int which) {
Do not disappear
try {
Java.lang.reflect.Field Field = Dialog
. GetClass (). Getsuperclass ()
. Getdeclaredfield ("mshowing");
Field.setaccessible (TRUE);
Field.set (Dialog, false);
Dialog.dismiss ();
/*****************************************/
Mobclickagent.onkillprocess (MyApplication.mApp.context);
Intent Intent = new Intent (intent.action_main);
Intent.addcategory (Intent.category_home);
_context.startactivity (Intent);
Finishprocess ();
/*****************************************/
} catch (Exception e) {
E.printstacktrace ();
}
}
}). Setcancelable (False). Show ();
Android system bullets don't go away