the short version is that you cannot mix resources like this, but you can use in Java:
getResources.getString(R.string.some_string, getResources.getInteger(R.integer.some_integer) );
and then in string XML
<string name="some_string">This is my string num %d in a row</string>
so replace %d with the integer you pass to getString
source share