In Android Activity, setContentView() connects a View or layout resource to the screen. After creating a TextView tv, calling setContentView(tv) makes it the root View displayed. setText() only changes content, and TextView tv = new TextView(this) creates the object but doesn't display it.