android MediaStore update cache before query

Java
sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.fromFile(newMediaFile)));getContentResolver().delete(uri, null, null)  // (Credit goes to [DDSports][1])
Source

Also in Java: