how to delete thumbnail?? is still hsow on gallery
<p>below is my code my appplcation copy image from gallery store in memory and delete file but thumbnail s still in gallery not remove it what do i do? plz tell me help me is delete picture but thumbail still visiable in gallery  </p>

<pre><code>    final String[] columns = { MediaStore.Images.Media.DATA, 
   MediaStore.Images.Media._ID };
    final String orderBy = MediaStore.Images.Media._ID;

    imagecursor = managedQuery(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, 

    columns, null,null, orderBy);

    image_column_index =  
          imagecursor.getColumnIndex(MediaStore.Images.Media._ID);

    this.count = imagecursor.getCount();

    this.thumbnails = new Bitmap[this.count];

    this.arrPath = new String[this.count];

    this.thumbnailsselection = new boolean[this.count];

    for (int i = 0; i &lt; this.count; i++) 
    {
        imagecursor.moveToPosition(i);
        int id = imagecursor.getInt(image_column_index);
        int dataColumnIndex = 
   imagecursor.getColumnIndex(MediaStore.Images.Media.DATA);
        thumbnails[i] = 

   MediaStore.Images.Thumbnails.getThumbnail(getApplicationContext()
  .getContentResolver(), id,MediaStore.Images.Thumbnails.MICRO_KIND, null);
        arrPath[i]= imagecursor.getString(dataColumnIndex);




    }

    imagecursor.close();
}

 private void showProgress()
    {
        myProgressDialog =        
            ProgressDialog.show(AndroidCustomGalleryActivity.this,null,
  "Loading Data...", true); 
    }

    private void hideProgress()
    {
        if (myProgressDialog != null)
            myProgressDialog.dismiss();
    }

     ///////////////////// Get File Name from path ////////////////////////////
public String FileName(String path)
{
    String f = " /";
    boolean c = false;

    for(int i=path.length()-1;i&gt;0;i--)
    {
        if(c == false)
            if(path.charAt(i) == f.charAt(1))
            {
                c = true;
                return 
       path.substring(i+1,path.length());       
            }
    }

    return "";
}

///////////////////// Get Extension from path ////////////////////////////

   public String fileExt(String audio)
   {
    String fileName = "";
    String f = " .";
    boolean c = false;

    for(int i=audio.length()-1;i&gt;0;i--)
    {
        if(c == false)

            if(audio.charAt(i) == f.charAt(1))
            {
                fileName = audio.substring(i+1,audio.length());
                c = true;
            }
    }

    return fileName;
}

public void SelecedtPhotos()
{

    final int len = thumbnailsselection.length;
//  int cnt = 0;

    for (int i =0; i&lt;len; i++)
    {
        if (thumbnailsselection[i])
        {
            //cnt++;

            BitmapFactory.Options options = new  
   BitmapFactory.Options();
            options.inPreferredConfig = Bitmap.Config.ARGB_8888;
            Bitmap bitmap = BitmapFactory.decodeFile(arrPath[i], 
      options);

            try {
                FileOutputStream outputStream = 
    openFileOutput(FileName(arrPath[i]), Context.MODE_PRIVATE);
                outputStream.write(getBitmapAsByteArray(bitmap));
                outputStream.close();
            } catch (Exception e) {
                e.printStackTrace();
            }

            db = new DataBase(getBaseContext()); 
            try {
                db.createDataBase();
            } catch (IOException e1) {
                e1.printStackTrace();
            }

            db.insert_update("INSERT INTO Photos(name,ext,path) 
  VALUES  ('"+FileName(arrPath[i])+"','"+fileExt(arrPath[i])+"','"+arrPath[i]+"')");

            db.close();

            File file = new File(arrPath[i]);
            boolean t = file.delete();

        }
    }
</code></pre>
