I\'ve been trying to make a simple program that fetches a small random number and displays it to the user in a textview. After finally getting the random number to generate
You are trying to set int value to TextView so you are getting this issue. To solve this try below one option
TextView
option 1:
tv.setText(no+"");
Option2:
tv.setText(String.valueOf(no));