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 :

public void UpdateGallery(String filePath) {
    sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.fromFile(new File(filePath))));
}

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