Android Resources vs R
<p>In android I can do the following (both return ints):</p>

<pre><code>R.color.my_color;
</code></pre>

<p>vs</p>

<pre><code>Resources myR = getResources();
myR.getColor(R.color.my_color);
</code></pre>

<p>What is the difference as they both return ints?</p>
