set text on textview android code example
Example 1: android studio set text of textview
// globally
TextView myAwesomeTextView = (TextView)findViewById(R.id.myAwesomeTextView);
//in your OnCreate() method
myAwesomeTextView.setText("My Awesome Text");
Example 2: get text from textview android
String a = tv.getText().toString();
int A = Integer.parseInt(a);