Change to
int l = Integer.parseInt(s);
tv1.setText(String.valueOf(l));
setText
takes CharacterSequence
. However there is also a method that takes resourceid as a param. In your case setText took int. If android does not find the resource with the id mentioned you get ResourceNotFoundException