public void showSettingsAlert() { String titulo; String mensaje; if (pref.getString("PREF_LAN", "mx").equals("en")) { titulo = _context.getResources().getString(R.string.altd_title_nonetwork_en); mensaje = _context.getResources().getString(R.string.altd_subtitle_nonetwork_en); } else { titulo = _context.getResources().getString(R.string.altd_title_nonetwork); mensaje = _context.getResources().getString(R.string.altd_subtitle_nonetwork); } int icono = android.R.drawable.ic_menu_preferences; alerta = new WIFI_AlertDialogManager(_context); alerta.showAlertDialog(titulo, mensaje, icono); }
public void cancelDialog() { alerta.cancelDialog(); }