Getting Booleans and Integers from strings.xml
It works for me, first I openned Strings.xml and added this:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item type="integer" name="mynumber">4</item>
</resources>
Then in the code I get the value by doing this:
int number= getResources().getInteger(R.integer.mynumber);
You have to use R.integer.* and not R.string.*