I have a string.xml file full of text_1 ... text_100 Now I want to choose a random text of these and display it on a TextView. I tried to use
String text = "text_";
int randomNum = rand.nextInt((100 + 1) + 1;
text = text + String.valueOf(randomNum);
txt.setText(getString(R.string.text);
so now it doesn't work because there is no "text" in the string file...
maybe some suggestions?