I'm trying to display a string inside a textView object. currently I'm only getting the first string in the string array.
public void onClick(View v) {
Resources res = getResources();
String[] hintsStr = res.getStringArray(R.array.hints);
TextView hintShow = (TextView)findViewById(R.id.hintShow);
int rndInd = (int) Math.random()*5;
//hintShow.setText(rndInd);
hintShow.setText(hintsStr[rndInd]);
//System.out.print(rndInd);
}