I am have trouble accessing a string I stored in strings.xml and don’t know why.
res/values/strings.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="FileBrowser">FileBrowser</string>
<string name="menu_settings">Settings</string>
<string name="up_one_level">..</string>
<string name="current_dir">.</string>
</resources>
Code
this.directoryEntries.add(getString(R.string.current_dir)); //current_dir is not being seen
Usually this means you have an error in one of your XML files so it can’t rebuild your resources. Look under the problems tab in Eclipse and you’ll probably see an XML issue, could be in any of your XML files, not necessarily in
strings.xml.