button.setText(resultCode);
gives an error because resultCode
is an int
so its looking for a resource
with that id
. See the two methods of setText(). You can use
button.setText(String.valueOf(resultCode));
If you want the String
value of that int
to be displayed. Otherwise please explain better what you want to happen.