android MediaStore update cache before query code example
Example 1: android MediaStore update cache before query
getContentResolver().delete(uri, null, null) // (Credit goes to [DDSports][1])
Example 2: android MediaStore update cache before query
sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.fromFile(newMediaFile)));