Skip to content Skip to sidebar Skip to footer

Image Not Showing Up In Gallery

My app is able to take a photo and stores it into a specified folder. Using ES File explorer, I'm able to confirm that the image has been stored in sd card and the specified folde

Solution 1:

It might take some time till it finished the scanning.

If you wish, you can at least be notified when it finished:

MediaScannerConnection.scanFile(
      getApplicationContext(), 
      newString[]{file.getAbsolutePath()}, 
      null, 
      newOnScanCompletedListener() {
         @OverridepublicvoidonScanCompleted(String path, Uri uri) {
            // file was scanned
         }
      });

for more information read here.

Post a Comment for "Image Not Showing Up In Gallery"