Skip to content Skip to sidebar Skip to footer

Action_media_scanner_scan_file From External Sdcard Lollipop+

I have a problem, this code works perfectly, but if the video is in sdcard can not be erased by mediaScan. It is a mistake? or it is a special permission? @Override public void

Solution 1:

To correctly delete media that has been indexed by the media scanner, you should use delete it through the content provider. For example:

getContentResolver().delete(uri, null, null);

Post a Comment for "Action_media_scanner_scan_file From External Sdcard Lollipop+"