diff --git a/src/android/CameraLauncher.java b/src/android/CameraLauncher.java index c61121e..0f9b4b0 100644 --- a/src/android/CameraLauncher.java +++ b/src/android/CameraLauncher.java @@ -601,6 +601,7 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect String imageFileName = "IMG_" + timeStamp + (this.encodingType == JPEG ? ".jpg" : ".png"); File storageDir = Environment.getExternalStoragePublicDirectory( Environment.DIRECTORY_PICTURES); + storageDir.mkdirs(); String galleryPath = storageDir.getAbsolutePath() + "/" + imageFileName; return galleryPath; }