Hi,

First create a textview in main.xml if you want to see the msg displayed on
main.

and in your activity class, you can access that textview using this code

TextView t = (TextView)findViewById(R.id.textView1);//textView1 is the id
of textview that you have created in main.xml

t.setText("This is 1");

It should be helpful. Try it out.


-- 
Thanks & Regards,
Sowmya Kukkadapu

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to