This is in Android/media/ folder, particularly, /storage/emulated/0/Android/media/com.whatsapp/
When I call a query with MediaStore, I get mostly relative + display name of:
but also rarely
How is this possible? I view the folder on the a file explorer and for that file, its path is the former and is in the same folder as other files.
RELATIVE_PATH is metadata from MediaStore’s DB, not necessarily the exact on-disk path, and sometimes it keeps odd casing/older folder naming (WhatsApp/Media vs whatsapp/media) depending on how the file was indexed or moved.
If the file opens fine via its content:// Uri, then the “wrong” path is probably just stale/normalized data.
So yeah, don’t rely too hard on RELATIVE_PATH, use the Uri instead.
Mohamed Shannan