+ // Notify MediaScanner about removed file
+ Intent intent1 = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);
+ intent1.setData(Uri.fromFile(new File(file.getStoragePath())));
+ MainApp.getAppContext().sendBroadcast(intent1);
+
+ // Notify MediaScanner about new file/folder
+ Intent intent2 = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);
+ intent2.setData(Uri.fromFile(new File(defaultSavePath + targetPath)));
+ MainApp.getAppContext().sendBroadcast(intent2);
+
+ Log_OC.d(TAG, "uri old: " + file.getStoragePath());
+ Log_OC.d(TAG, "uri new: " + defaultSavePath + targetPath);