How can we retrieve and display in a TextView
for example messages that we have in LogCat
?
Log.i(LOG_TAG, "Layer Direction : " + direction);
Log.i(LOG_TAG, "Layer ShortPD : " + pr);
Log.i(LOG_TAG, "Layer Stack : " + stackL3);
Log.i(LOG_TAG, "Layer Header : " + msgL3);
Log.i(LOG_TAG, "Layer Data : " + strData);
Log.i(LOG_TAG, "Layer BCCH : " + bcchString);
So, I display these messages in LogCat
and right now I want to display them in some TextView
's in my application.
Refer this link. http://www.tutorialspoint.com/android/android_textview_control.htm
Follow these steps: 1] Create XML for define textview. 2] Create Activity Class for set text on TextView.