I have all my strings for my project stores in the string.xml file. I have no problem using them in most cases but for some reason it outputs an integer value to the editText when I mix Strings with an integer for example if I do:
editText.setText(R.string.x_plays + j)
which I want to display "X Plays: 3" to the GUI however it displays a large integer to the GUI. If I do this without j (which is an integer) it is fine.
editText.setText(R.string.x_plays)
This just displays the string "X Plays: ".
So the problem is obviously trying to concatenate an integer with an R.string but I don't know how to work around this. I have tried using stringBuilder and adding in empty strings ("") around the R.string and integer but similar results are returned. How can I fix this?