Type mismatch: cannot convert from void to Integer

anu*_*nuj 1 alert android

I have this t1 as a text view. I want to store the value of t1 in a variable but i am getting "Type mismatch: cannot convert from void to Integer" error

Integer res=t1.setText(Integer.toString(result));