Android getResources/getIdentifier not returning ID
<p>I have code like tthis:</p>

<pre><code>String s = "replace__menu__" + data.imageid + ".png";
int RID = this.getApplicationContext().getResources().getIdentifier(s, "drawable-hdpi", getPackageName());
</code></pre>

<p>The <em>String s =</em> instruction sets a value that is the same as one of names in my res/drawable-hdpi folder. However, the returned value sets <em>RID</em> to the value <em>0</em></p>

<p>Any idea why my code is not working? Am I doing something wrong?</p>
