Sets the string value of the TextView. TextView does not accept HTML-like formatting, which you can do with text strings in XML resource files. To style your strings, attach android.text.style.* objects to a SpannableString, or see the Available Resource Types documentation for an example of setting formatted text in the XML resource file.
1. Add a TextView in XML or Instantiate a TextView in Java named myTextView.
2. Declare a TextView named myTextView.
3. Add the below line to the onCreate method.
myTextView.setText("This is the text!");
4. Compile and run!
Resources:
http://developer.android.com/reference/android/widget/TextView.html#setText(java.lang.CharSequence)
Resources:
http://developer.android.com/reference/android/widget/TextView.html#setText(java.lang.CharSequence)