android how to add image Adapter in my gridview
<p>how do i use image adapter in this code? i want to show real images on grid view not icon what do i do below is my code i am using simple Adapter how do i use image adapter in my code how do i use customize image adapter so i show real images on  grid view help me for this . please help me please</p>

<pre><code>        gridView =(GridView)findViewById(R.id.grid);
    gridView.setOnItemClickListener(new OnItemClickListener(){
        public void onItemClick(AdapterView&lt;?&gt; parent, View view, int 
        position,long id) {


        if(currentFiles[position].isDirectory())
        {
            root = new File("/data/data/com.myexample
     /files/"+FileName(currentFilePath[position])+"/");

            Log.e("Root first",root+ " ");

            currentFiles = root.listFiles();

            inflateListView(currentFiles);
        }


         private void inflateListView(File[] files){

List&lt;Map&lt;String,Object&gt;&gt; listItems = new ArrayList&lt;Map&lt;String,Object&gt;&gt;();

for(int i=0;i&lt;files.length;i++)
{       
        Map&lt;String, Object&gt; listItem = new HashMap&lt;String, Object&gt;();

        if(files[i].isDirectory())
        {
            listItem.put("icon", R.drawable.folder);
        }
        else
        {
            listItem.put("icon", R.drawable.file);
        }

        listItem.put("fileName", files[i].getName());
        listItems.add(listItem);
    }

    simpleAdapter=new SimpleAdapter(this,listItems,R.layout.line,new String[]
   {"icon","fileName"},new int[]{R.id.icon,R.id.file_name});
    gridView.setAdapter(simpleAdapter);
</code></pre>
