title: Android Default String Resource: Why android.R.string.yes is getting OK
body: <p>I am trying to display the default string from the String Resources of Android.</p>
  
  <p><strong>My Code Snippet:</strong></p>
  
  <pre><code>    new AlertDialog.Builder(CartProductListActivity.this)
              .setTitle("Are you sure?")
              .setMessage("Are you sure you want to delete this item from cart?")
              .setPositiveButton(getString(android.R.string.yes), new DialogInterface.OnClickListener() {
                  @Override
                  public void onClick(DialogInterface dialog, int which) {
                      dialog.dismiss();
                  }
              })
              .setNegativeButton(getString(android.R.string.no), new DialogInterface.OnClickListener() {
                  @Override
                  public void onClick(DialogInterface dialog, int which) {
                      dialog.dismiss();
                  }
              }).show();
  </code></pre>
  
  <p>In the above code, I have used <code>android.R.string.yes</code> and <code>android.R.string.no</code> which is returning <strong>OK</strong> and <strong>Cancel</strong> respectively.</p>
  
  <p>I show default string.xml file by <kbd>CTRL</kbd> + clicking on that <code>yes</code> and That has a same string (for <code>yes</code> and <code>ok</code>) as below:</p>
  
  <pre><code>&lt;!-- Preference framework strings. --&gt;
  &lt;string name="ok"&gt;OK&lt;/string&gt;
  &lt;!-- Preference framework strings. --&gt;
  &lt;string name="cancel"&gt;Cancel&lt;/string&gt;
  &lt;!-- Preference framework strings. --&gt;
  &lt;string name="yes"&gt;OK&lt;/string&gt;
  &lt;!-- Preference framework strings. --&gt;
  &lt;string name="no"&gt;Cancel&lt;/string&gt;
  </code></pre>
  
  <p>Why there are two resources with same name. User is getting confused for <code>yes</code>? Is it a bug of Android Default Resources? </p>
  
  <blockquote>
    <p>Why <code>android.R.string.yes</code> don't have value as <code>Yes</code>? </p>
    
    <p>Why <code>android.R.string.no</code> don't have value as <code>No</code>?</p>
  </blockquote>
  
  <p>Note: I saw there is <strong>android.R.string.yes => YES</strong> but why its changed now?</p>