Dialog dialog = new AlertDialog.Builder(this) .setTitle("Connection Failed") .setMessage("Tying to connect server, please check your network.") .setIcon(android.R.drawable.ic_dialog_alert) .create(); dialog.setCanceledOnTouchOutside(false); dialog.show();
Posted inAndroid