title: AlertDialog...no OK button, only Cancel
body: <p>I want to show a alert dialog with OK and Cancel button but I only get Cancel. When I comment out cancel button i then get OK button. Weird. Anyway, here's the code:</p>
  
  <pre><code>final AlertDialog ukucajIme = new AlertDialog.Builder(Kviz.this).create();
              ukucajIme.setTitle("Insert your name");
              final EditText input = new EditText(Kviz.this);
  
              ukucajIme.setView(input);
  
              ukucajIme.setButton("Ok", new DialogInterface.OnClickListener() {
                  public void onClick(DialogInterface dialog, int whichButton) {
                    Editable ukucanoIme = input.getText();
                    finish();
                    }
                  });
              ukucajIme.setButton("Cancel", new DialogInterface.OnClickListener() {
  
                  public void onClick(DialogInterface dialog, int whichButton) {
                       ukucajIme.dismiss();
                       finish();
                    }
                    });
              ukucajIme.show();
  </code></pre>
  
  <p>And question number two: whenever I try to use something like ukucajIme.setPositiveButton it gives me an error and says to change it to setButton. Why is that?</p>