Photos Not Showing in Gallery — They're Almost Certainly Still There
When photos disappear from your Android gallery, the natural reaction is panic — "are they deleted?" In the vast majority of cases, no. The photos are still on your device. The gallery app simply can't see them because of an indexing issue.
Here's the key insight: your gallery app doesn't show you files directly. It shows you what Android's media scanner has indexed. If the scanner skips a folder (because of a .nomedia file, permission issue, or bug), those photos become invisible to the gallery — but they still exist on the filesystem.
AnExplorer bypasses gallery indexing entirely. It shows the raw filesystem — every file, every folder, hidden or not. If you can see your photos in AnExplorer, they're safe. Then you just need to fix why the gallery can't see them.
Step 1: Confirm Photos Still Exist
Open AnExplorer and check these locations:
| Location | What's usually there |
|---|---|
Internal Storage/DCIM/Camera | Photos taken with your camera app |
Internal Storage/DCIM/Screenshots | Screenshots |
Internal Storage/Pictures | Photos from apps, downloads, edits |
Internal Storage/Download | Downloaded images |
SD Card/DCIM/Camera | Photos saved to SD card |
Android/media/com.whatsapp/WhatsApp/Media | WhatsApp photos |
If photos appear in AnExplorer but not the gallery → the issue is indexing (fixable). If photos don't appear anywhere → they may actually be deleted (check Trash Bin, cloud backup, or Recently Deleted).
Step 2: Check for .nomedia Files
A .nomedia file is an empty file that tells Android's media scanner: "skip this folder." Some apps create these intentionally (to hide their cache from the gallery), but sometimes they appear in the wrong folder.
How to find and remove:
- In AnExplorer, tap ⋮ → enable Show hidden files
- Navigate to the folder where photos should be (e.g. DCIM/Camera)
- Look for a file named
.nomedia(it will be 0 bytes) - If found: long-press → Delete
- Restart your phone — the gallery will re-scan the folder
Common places .nomedia appears accidentally:
DCIM/Camera(after a file manager or cleanup app creates it by mistake)Pictures/(after moving files between folders)- SD card root (hides ALL SD card media from gallery)
Step 3: Fix Storage Permissions
Android 13 and above uses granular media permissions. After an update, your gallery app may lose access:
- Go to Settings → Apps → Your Gallery App (Samsung Gallery, Google Photos, etc.)
- Tap Permissions → Photos and videos
- Select Allow all (not "Allow limited access")
- Restart the gallery app
On Samsung One UI: also check Settings → Apps → Gallery → ⋮ → Reset preferences if permissions look correct but photos still don't show.
Step 4: Force Media Re-scan
If permissions are fine and there's no .nomedia file, the media scanner may just need a nudge:
Method 1: Restart your phone (simplest — the scanner runs on boot)
Method 2: Trigger a folder re-scan (targeted)
- In AnExplorer, navigate to the problem folder
- Move one photo to a different folder (e.g. move it to Downloads)
- Move it back
- This triggers the media scanner for both folders
Method 3: Clear gallery cache (Samsung/Pixel)
- Settings → Apps → Gallery (or Google Photos) → Storage → Clear cache
- Reopen the gallery — it rebuilds its index from scratch
Step 5: Check SD Card Issues
If photos on your SD card aren't showing:
- Open AnExplorer — does the SD card appear in the sidebar?
- If yes: check for .nomedia on the SD card root. Also check that the card isn't set to "portable storage" mode (which can hide media from some gallery apps).
- If no: the card may not be mounted. Remove it, clean the contacts, reinsert. If it still doesn't appear, try it in a PC card reader to verify it's not damaged.
Device-Specific Notes
| Device | Common cause | Fix |
|---|---|---|
| Samsung (One UI) | Hidden albums in Gallery settings | Gallery → ⋮ → Show hidden albums |
| Xiaomi (MIUI/HyperOS) | Gallery app has its own "hidden" feature | Gallery → Albums → Hidden album → unhide |
| Pixel (Stock Android) | Google Photos cloud-only (not downloaded) | Google Photos → Library → check "On device" filter |
| OnePlus (OxygenOS) | Gallery "Hidden collection" | Gallery → Collections → Hidden → unhide |
When AnExplorer Helps Most
AnExplorer is the diagnostic tool for this problem:
- Confirms photos exist — bypasses gallery indexing, shows raw filesystem
- Finds .nomedia files — with Show hidden files enabled, you can see and delete them
- Searches all storage — finds photos in unexpected folders the gallery doesn't scan
- Media Library view — AnExplorer's own categorized image view (☰ → Images) shows ALL images regardless of gallery indexing, giving you a complete picture of every photo on your device
- Moves files to fix indexing — moving a file triggers the media scanner for that folder
Download AnExplorer free to diagnose and fix your missing photos. Over 1.1 million users rely on AnExplorer for file management across phones, tablets, TVs, watches, and more — it's the most versatile Android file manager available.
Related Guides
- Access hidden files on Android — show all hidden files and folders
- Find downloaded files — locate any file on your device
- SD card not showing — fix SD card detection issues
- WhatsApp storage management — manage WhatsApp media
- Photo Viewer feature — AnExplorer's built-in viewer
If your photos are genuinely deleted (not in AnExplorer, not in Trash Bin, not in cloud backup), data recovery is limited on modern Android due to encryption. The best prevention is regular backups to cloud storage or a NAS using AnExplorer's cloud and network features.
