Android: I18n with parameters
You can do the same
In strings.xml you can put
<string name="xyz">Do you really want to report [%s] as spammer?</string>
and then in your code you put
String foo = getString(R.strings.xyz,"Joe Doe");
See Context.getString()
To elaborate on Heiko's answer, and to show your specific example, if you want to have more than one string you need to number them:
<string name="hello">Hello %1$s! You've got %2$d messages.</string>
This way you can switch the order of the strings in each translation. Using it would be:
String hello = getString(R.strings.hello, "Klaus", 5);