access a string from an xml file that is deeper in the package? android
<p>i have some strings in string.xml that i would like to access from the same package. im able to grab them from com.package.activity but i am not able to get them from com.package.domain.modern.</p>

<p>i tried something like this from com.package.domain.modern:</p>

<pre><code>String temp = "" + (com.package.activity.R.string.string);
</code></pre>

<p>and this an int returns "2131361874".</p>

<p>but when i try to use <code>(R.string.name_of_string)</code> in com.package. activity, it works fine.
<code>getResources().getString(R.string.name_of_string)</code> also works from there.</p>
