I’m using Android Camera Intent to start a camera capture inside my app
here’s my problem … I need to force the camera to use it’s lowest resolution
I already got a list off all possible resolutions
but when I do something like this :
Camera c = Camera.open();
Parameters cp = c.getParameters();
List<Size> ls = cp.getSupportedPictureSizes();
cp.setPictureSize(ls.get(0).width, ls.get(0).height);
cp.setPreviewSize(ls.get(0).width, ls.get(0).height);
the camera intent opens with an Error dialog saying the camera can not be used.
any help ?
do I need any more permissions other than the use-camera ??
Try to add this in your manifest
And since you manipulate the camera parameters, you should set the manipulated parameters to the camera like this:
Also be sure that there all camera objects call release() method.