One problem I can see is that you have created the textView in the Java code rather then within main.xml but not added the View to the layout. You czan create widgets in xml or in code (or both) but they need adding to a view group usingthis.addContentView(text);
You may also need to add parameters for the widget size.
javaAddict commented: Thanks for correcting me +4