hi, you should modify your test1.java like this:

public class test1 extends Activity
{
        private TextView dd;
        public void onCreate(Bundle x)
        {
                super.onCreate(x);
                setContentView(R.layout.text);
                String s=getIntent().getStringExtra("hello");
                dd=(TextView)findViewById(R.id.myCheckedTextView1);
                dd.setText(s);
        }

}

and add a new layout xml file named "text.xml"

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android";
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
>
<TextView
  android:id="@+id/myCheckedTextView1"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
/>
</LinearLayout>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to