Skip to content Skip to sidebar Skip to footer

Deleted Picture Still Visible In Gallery

I have a small problem here. In my application I let the user select a picture from the gallery. I save the path to it before doing anything else. When the user picks the picture h

Solution 1:

Found the solution.

I had to update the Gallery with this function :

publicvoidUpdateGallery(String filePath){
    sendBroadcast(newIntent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.fromFile(newFile(filePath))));
}

Post a Comment for "Deleted Picture Still Visible In Gallery"