Hi Chad,

What is the error that you are getting?
It is not recommended to use ViewGroup directly, you may want to use one of
the Layout classes instead, please see the ApiDemos.
I also noticed you have declared the TextView tv twice.

Thanks,
Megha

On Sun, Apr 27, 2008 at 9:04 AM, chad <[EMAIL PROTECTED]> wrote:

>
> Hi All,
>
> Cannot get a simple HelloWorld extension to work.  Instead of using  -
> just want to display the HelloWorld
>
>
>       ViewGroup vGrp = new ViewGroup(this);




>
>       TextView tv = new TextView(this);
>       tv.setText("Hello, Android 1");
>
>       TextView tv = new TextView(this);
>       tv.setText("Hello, Android 1");
>
>       setContentView(tv);
>
> I cannot find any example code for this and do not want to use a UI
> Editor such as http://www.droiddraw.org
>
>
> thnx,
> Chad
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to