else if (pregunta1.getItemAtPosition(position).equals("2.-Coloque la el comando para entrar a la terminal de PowerShell")){
AlertDialog.Builder ad=new AlertDialog.Builder(Matematicas.this);
ad.setTitle("Indique la respuesta correcta");
ad.setSingleChoiceItems(R.array.Pregunta2, -1, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
Toast.makeText(Matematicas.this, "" + which, Toast.LENGTH_LONG);
}
});
ad.setPositiveButton("confirmar", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
String[] esto=getResources().getStringArray(R.array.Pregunta2);
if (esto.toString().equals("A)PowerShell"))
Toast.makeText(getApplicationContext(), "si", Toast.LENGTH_SHORT).show();
else
Toast.makeText(getApplicationContext(), "no", Toast.LENGTH_SHORT).show();
}
});
ad.show();