Resources.getSystem() vs getResources()
<p>I am new to Android and I am learning the SDK myself from resource available over the net. </p>

<p>I came across a situation now. I am trying the below code:</p>

<p>Type 1:<code>getResources().getString(android.R.string.cancel);</code></p>

<p>Type 2:
<code>Resources.getSystem().getString(android.R.string.cancel);</code></p>

<p>Type 3:
<code>getString(android.R.string.cancel);</code></p>

<p>All of the above methods return the same value. So what are these methods, what are their use cases. What are the good practices on when to use which method. Please help me out.</p>
