📅  最后修改于: 2022-03-11 14:52:11.546000             🧑  作者: Mango
File file = new File(filePath);
MediaScannerConnection.scanFile(context,
new String[]{file.toString()},
new String[]{file.getName()},null);