How to correctly notify MediaScanner about a folder, even on Nexus/Kitkat devices?
问题 Background I'm making an app that downloads some images from the Internet into a specific folder that is defined as: final String pathToPutFiles = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES) + File.separator + DOWNLOAD_FOLDER_NAME; I wish to make the gallery and any app that shows media, to be notified of those images and be able to show them. Sadly I'm having problems on Nexus 4, which has Kitkat version (4.4.2 to be exact). Sometimes it works and sometimes