Android crashes when I try to change an ImageView image
<p>I have a ImageView, and I would like the picture to switch between two pictures each time it is pressed.  I commented out all the code and just have the code that changes the image the image view shows. It crashes when I call setImageDrawable.</p>

<p>The code:</p>

<pre><code>ImageView but;
but =(ImageView) findViewById(R.id.butFavrets);  

// it crashes hear
but.setImageDrawable(  Drawable.createFromPath("@drawable/unselected") ); 
</code></pre>

<p>The XML file:</p>

<pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/backFeetGallery"
    android:layout_width="match_parent"
    android:layout_height="match_parent"&gt;

    &lt;ImageView
        android:id="@+id/viewimage"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"        
        android:layout_centerVertical="true"
        android:layout_centerHorizontal="true"               
        android:src="@drawable/background" /&gt;         

     &lt;Button
        android:id="@+id/butEmail"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_toRightOf="@+id/butLeft"
        android:text="Email" /&gt;

    &lt;Button
        android:id="@+id/butLeft"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"    
        android:text="Left" /&gt;


    &lt;Button
        android:id="@+id/butRight"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:text=" Right " /&gt;

      &lt;ImageView
        android:src="@drawable/unselected" 
        android:id="@+id/butFavrest"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_toLeftOf="@+id/butRight" /&gt;

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