Following is my code
public void display(int number){
TextView quantity = findViewById(R.id.quantity);
quantity.setText(number);
}
When I give setText(number)
then it gives error which states that no resource found.
But when I give setText("" + number);
then it works perfectly.
Am I missing some fundamentals?