android textview content code example Example: get text from textview android String a = tv.getText().toString(); int A = Integer.parseInt(a);