ListView exception for Images + Text
<p>I am trying to create a simple Icon+Text ListView but it does not work.
I am using 2.1 Android SDK.</p>

<p>My main class is very small slightly modified from the tutorial:</p>

<pre><code>public class Stuffs extends ListActivity {
    static final String[] COUNTRIES = new String[] {"A", "B","C"};

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);        

        setListAdapter(new ArrayAdapter&lt;String&gt;(this, R.layout.list_item, R.id.title, COUNTRIES));


    }
}
</code></pre>

<p>and my list_item.xml file is this:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation = "horizontal"&gt;
    &lt;ImageView
        android:id = "@+id/icon"        
        android:src="@drawable/icon" /&gt;


    &lt;TextView       
        android:id = "@+id/title"
        android:padding="10dp"
        android:textSize="16sp" &gt;
    &lt;/TextView&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p>I have also created a "drawable" directory in my res directory and copied a "icon.png" into it.</p>

<p>But any time I try to run this the application hangs up unexpected in my android emulator.
Am I missing something?</p>
