Adding a ListView causes the Android App to crash
<p>I have a problem which seems to weird.</p>

<p>The Android application I created is running fine, but when I added a "ListView" element in my <code>layout.xml</code> file.
and I still haven't used the ListView in my java class the application refuses to startup.
It simply craches and gives me this Msg : <code>The application Client (process com.example) has stopped unexpectedly. Please try again.</code></p>

<p>This is my layout.xml:</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:id="@+id/view"
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="@string/filename"/&gt;

    &lt;ListView android:id="@+id/list"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:drawSelectorOnTop="false"
    /&gt;

    &lt;EditText
    android:id="@+id/input"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:singleLine="true"
    /&gt;

    &lt;Button
    android:id="@+id/connect"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Connect"
    android:onClick="Connect"
    /&gt;

    &lt;Button
    android:id="@+id/download"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Download"
    android:onClick="Download"
    /&gt;
    &lt;Button
    android:id="@+id/delete"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="List"
    android:onClick="List"
    /&gt;

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

<p>Note: I'm testing on an Android device and not the emulator
Here is a Screenshot of the error I get in logcat: <a href="http://img852.imageshack.us/i/screenshotgg.png/" rel="nofollow">http://img852.imageshack.us/i/screenshotgg.png/</a></p>

<p>And finally found the sill mistake which caused it not to work
I declared 2 widgets with the same id.</p>

<p>Thnx alot in advance.</p>
