case 1: dismissDialog(1); new Builder(SplashActivity.this).setTitle("提示").setCancelable(false) .setMessage("获取软件初始化信息失败!/n请检查网络是否通畅。") .setPositiveButton("确认", new OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); SplashActivity.this.finish(); } }).show();