Just thought I'd add a message here for future reference. This question has bothered me for a long time. Turns out my problem was caused by the wrong preview size, although the permission set was obtained from the getSupportedPictureSize method.
So, for example, you can get the dimensions as follows:
//first entry in list is 1392x1392 for front facing camera on an S3 List<Camera.Size> supportedPictureSizes = params.getSupportedPictureSizes();
Setting this resolution or neglecting to set the image size all together will cause a terrible error 1001.
If you came across this on any other device, I would recommend trying different image sizes.
ViciDroid
source share