I am trying to set text in my button .
answers is an
ArrayList
of Integers
On converting it to string
it works perfectly
button0.setText(Integer.toString(answers.get(0)));
But on using integer value my app crashes.
button0.setText(answers.get(0));
Any suggestions why this happening ?
As TextView.seText()
easily set the integer text to it but why button is unable to do it ?