I got a warning message that says:
[I18N] Hardcoded string
"Something : " + someVariable, should use @string resource.
The line of code is:
mTextView.setText("Something : " + someVariable);
I usually resolve this problem by extracting it to a string resource like :
mTextView.setText(mContext.getString(R.string.mSomething) + someVariable);
This obviously cannot be used when you have a variables which you want to display. So what is the correct way to display a String resource with a variable without getting a warning?