Displaying images in android?
<p>I am working on student details application. I stored all the student details in sqlite database and I kept my sqlite file in assets folder. I need to display <strong>the student photo also</strong>. So for that I kept a <strong>column in db and stored the image names of the students.</strong> Now I am displaying the students names in a listview. When the student name is clicked it has to display all the details of that particular student along with the photo. How can I display a particular student photo? I kept the student photos in drawable folder.  </p>

<p>My Code:</p>

<p>student.xml</p>

<pre><code>&lt;ImageView 
android:layout_width="wrap_content" 
android:layout_height="wrap_content" 
android:id="@+id/yes" 
android:src="@drawable/photo"/&gt; 
</code></pre>

<p>Student.java</p>

<pre><code>Bitmap image = BitmapFactory.decodeResource(getResources(),R.drawable.photo); 

ImageView Image1 = (ImageView) findViewById(R.id.yes); 

Image1.setImageBitmap(image ); 
</code></pre>

<p>Please help me regarding this....thanks in advance</p>
