I am trying to concatenate two strings like the below Method.I Referred from dynamic String using String.xml?
String incorrect = getResources().getString(R.string.username_or_password_incorrect);
mErrorMsgId = String.format(getResources().getString(R.string.username_or_password_incorrectfull), incorrect);
it returns
error: incompatible types required: int found: String
EDIT
I need to replace the %1$s in the below string with this string R.string.username_or_password_incorrect
'<string name="username_or_password_incorrectfull">The username or password you entered is incorrect \- If you\'re a self hosted WordPress.org user, don\'t forget to tap %1$s and fill the URL field</string>'
How to solve this ?