My Android application crash can't figure out why?
<p>I get the error (see picture) <img src="http://i.stack.imgur.com/Tt2rf.png" alt="enter image description here"></p>

<p>I can't figure out what going on. It literally say that my RadioGroup cannot be cast to TextView ? but why ? R.id.myMessage is not a RadioButtom !</p>

<p><strong>Activity</strong> </p>

<pre><code>public class Ch7_JoshRadioGroup extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        final TextView myMessage = (TextView) findViewById(R.id.myMessage);

        // Gestion du bouton "Hello, Joshua"
        Button myButton = (Button) findViewById(R.id.myButton);

        myButton.setOnClickListener(new OnClickListener(){
            @Override
            public void onClick(View v) {
                // View est un type générale
                // v est le bouton dans ce contexte-ci
                //Button thisOne = (Button) v;
                //thisOne.setText("You pushed this button!");

                // Envoi un toast d'une longue durée lorsque le bouton est appuyé
                Toast.makeText(Ch7_JoshRadioGroup.this, "test", Toast.LENGTH_LONG); 
            }
        });
    }
}
</code></pre>

<p><strong>Layout</strong> :</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    &gt;

&lt;TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="@string/hello"
    android:id="@+id/myMessage"
    /&gt;

&lt;Button 
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="@string/hello_joshua"
    android:id="@+id/myButton"
    /&gt;

&lt;LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="wrap_content" 
    android:orientation="horizontal"&gt;

    &lt;TextView 
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="1"
        android:gravity="center"
        android:background="#ff0000"
        android:textColor="#000000"
        android:text="red"
    /&gt;

    &lt;TextView 
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="1"
        android:gravity="center"
        android:background="#00ff00"
        android:textColor="#000000"
        android:text="green"
    /&gt;

    &lt;TextView 
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="1"
        android:gravity="center"
        android:background="#0000ff"
        android:textColor="#000000"
        android:text="blue"
    /&gt;
&lt;/LinearLayout&gt;

&lt;RadioGroup
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:id="@+id/myRadioGroup"
    android:orientation="horizontal"&gt;

    &lt;RadioButton
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_marginLeft="35dp"
        android:layout_weight="1"
        android:id="@+id/myRadioButtonRed"
     /&gt;

    &lt;RadioButton
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_marginLeft="35dp"
        android:layout_weight="1"
        android:id="@+id/myRadioButtonGreen"
     /&gt;

     &lt;RadioButton
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_marginLeft="35dp"
        android:layout_weight="1"
        android:id="@+id/myRadioButtonBlue"
     /&gt;

&lt;/RadioGroup&gt;

&lt;/LinearLayout&gt;
</code></pre>
