How to set text of TextView in android?

I had to solved the problem of How to set text of TextView..

The solution is below…

 

private TextView demoTextView;

private String demoString;

demoTextView = (TextView) findViewById(R.id.tv);

demoString = “hello friends ! wht’s up?”;

mTextView.setText(mString);

About the Author

avatar