I go through this How to concatenate multiple strings in android XML? and in the end there are comments that
For clarity, Its works:
&
How about this technique
Use an array
https://myapp.com/
- Update can be downloaded manually by visiting this link:\n
- @string/app_link
And then make a method in java class as below
public String getStringArray(int resStringArray)
{
String str = "";
String[] strArray = mContext.getResources().getStringArray(resStringArray);
for (String s: strArray)
{
str += s;
}
return str;
}
Now call it from any java class as
mDialog.setMessage(getStringArray(R.array.update_dialog_msg);
// OR
textView.setText(getStringArray(R.array.update_dialog_msg);