The following will programmatically set the text value of a TextView.
String message = "Hello World";
TextView txtMessage = (TextView) findViewById(R.id.layout_txtMessage);
txtMessage .setText(message);
The following will programmatically set the text value of a TextView.
String message = "Hello World";
TextView txtMessage = (TextView) findViewById(R.id.layout_txtMessage);
txtMessage .setText(message);