Resources NotFoundException?

I got this exception:

Resources$NotFoundException: String resource ID

when I was using setText with an int value. I had to convert it to String.

Before:

myTextView.setText(obj.SomeIntProperty);    

After:

myTextView.setText(String.valueOf(obj.SomeIntProperty));

Leave a Comment