If you a complete newby, then probably "adding the TextView as the root view of the activity’s layout" (whatever it means) is not the right place to start. Try to understand the very basics by learning your first project structure. Assuming that you work in Eclipse and haven't changed the default activity (MainActivity.java) and layout file (activity_main.xml) names when creating the project, do as follows:
So, your activity_main.xml should look like
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin" >
<TextView
android:id="@+id/tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
</RelativeLayout>
If TextView is highlighted with red, press Ctrl+Shift+O (Windows) to import the needed classes. You should see:
package your.package.name;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
TextView tv = (TextView) findViewById(R.id.tv);
tv.setText("Your text");
}
}