AlertDialog.Builder builder = new AlertDialog.Builder(_context); builder.setTitle("温馨提示").setMessage("您的账户被锁定,请联系闭门!") .setPositiveButton("确定", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { // 不消失 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();
时间: 2025-01-18 14:02:41