diff --git a/src/android/CameraLauncher.java b/src/android/CameraLauncher.java index 5b2a9a9..6dfe3cb 100644 --- a/src/android/CameraLauncher.java +++ b/src/android/CameraLauncher.java @@ -367,7 +367,10 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect throw new IllegalArgumentException("Invalid Encoding Type: " + encodingType); } - return new File(getTempDirectoryPath(), fileName); + File cacheDir = new File(getTempDirectoryPath(), "org.apache.cordova.camera"); + cacheDir.mkdir(); + + return new File(cacheDir, fileName); } diff --git a/src/android/xml/camera_provider_paths.xml b/src/android/xml/camera_provider_paths.xml index 3266748..7c3584c 100644 --- a/src/android/xml/camera_provider_paths.xml +++ b/src/android/xml/camera_provider_paths.xml @@ -17,5 +17,5 @@ --> - - \ No newline at end of file + +