I have read this where found that how to access integer resources in java class but no docs for another resource.
Here is Resources at res/values/integers.xml
if you are taking Integer resource then you have to take R.Integer.yourintvalue like this way
int value=(int) contextG.getResources() .getDimension(R.integer.myvalue);