sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.fromFile(new File(config.cameraPath))));
以上是微信跟抖音 同步图片跟视频到相册的代码,亲测有效。
sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.fromFile(new File(config.cameraPath))));
以上是微信跟抖音 同步图片跟视频到相册的代码,亲测有效。