I have an XML file:
<building>
<room IMAGE="R.raw.room" />
</building>
but I don't know how to link the value of IMAGE to my main program... When I do this:
[... parsing xml file and detect room ...]
ImageView image = findViewByID(xml.getAttributeValue(0));
it don't works.. Cause it returns me a String and not a int. How can I link this XML file to my resources?
Please help!