title: Android AlertDialog BUTTON_POSITIVE / BUTTON_NEGATIVE order
body: <p>I know that pre-ICS, the standard order in an AlertDialog is "Ok" / "Cancel" and that has changed in ICS (the standard order became "Cancel" / "Ok")</p>
  
  <p>However, even if I use </p>
  
  <pre><code>alert.setButton(AlertDialog.BUTTON_POSITIVE, "Ok", ...)
  alert.setButton(AlertDialog.BUTTON_NEGATIVE, "Cancel", ...)
  </code></pre>
  
  <p>I get the same result running the application in pre-ICS and in ICS: in both the positive option appears at left, negative at right. </p>
  
  <p>Shouldn't this be automatic, since we are using System constants to define where positive (AlertDialog.BUTTON_POSITIVE) and negative (AlertDialog.BUTTON_NEGATIVE) are?</p>
  
  <p><strong>EDIT:</strong>
  After accepting the solution, I would like to refer that I am now using the following code to set the buttons in the correct order in ICS and pre-ICS:</p>
  
  <pre><code>if (Build.VERSION.SDK_INT &lt; Build.VERSION_CODES.ICE_CREAM_SANDWICH) { // pre-ICS, show Positive/Negative
      alertDialog.setButton(labelPositive, positiveListener);
      alertDialog.setButton2(labelNegative, negativeListener);    
  } else { // ICS+, show Negative/Positive
      alertDialog.setButton(labelNegative, negativeListener);
      alertDialog.setButton2(labelPositive, positiveListener);
  }
  </code></pre>