title: Eclipse/Java - Values in R.string.* return int?
body: <p>I thought I'd be classy and use the string.xml file to define some constant strings for things like exception messages.  In strings.xml I hit Add, chose the "String" option (not 'String Array'), then gave it a name and value.  I was surprised to see that this code doesn't work:</p>
  
  <pre><code>throw new Exception(R.string.MyExceptionMessage);
  </code></pre>
  
  <p>And that fails because R.string.MyExceptionMessage is actually of type int.  I can verify that type by looking in R.java.  What am I missing?</p>