I have this code that creates an AlertDialog
public void mostrar_popup(){
AlertDialog.Builder dlg = new AlertDialog.Builder(getActivity());
dlg.setCancelable(false); //impede que a janela seja fechada ao clikcar fora
dlg.setMessage("É preciso digitar um texto para continuar ");
dlg.setNeutralButton("OK",null);
dlg.setPositiveButton("sim",null);
dlg.create();
dlg.show();
}
And the result is this
AndthisistheresultIwouldlikeittoleave