Change image in image view ANDROID
<p>i am creating a app as a part of assignment . It is turn bulb on or off when it is touhed.i am new and have no idea on how to do it.i just add one image in which bulb is off to the image viewer and now i donot know what to write in .java file to make it work..........</p>

<pre><code>&lt;ImageView
    android:id="@+id/imageView1"
    android:contentDescription="@string/off"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:src="@drawable/off" /&gt;
</code></pre>
