Android - can't access strings with R.string
<p>I am have trouble accessing a string I stored in strings.xml and don't know why.</p>

<p><strong>res/values/strings.xml</strong></p>

<pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;resources&gt;
    &lt;string name="FileBrowser"&gt;FileBrowser&lt;/string&gt;
    &lt;string name="menu_settings"&gt;Settings&lt;/string&gt;
    &lt;string name="up_one_level"&gt;..&lt;/string&gt;
    &lt;string name="current_dir"&gt;.&lt;/string&gt;
&lt;/resources&gt;
</code></pre>

<p><strong>Code</strong></p>

<pre><code>this.directoryEntries.add(getString(R.string.current_dir)); //current_dir is not being seen
</code></pre>
