Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

open camera with picture size as 16:9 programatically

i am developing an image editing app, when the camera is invoked i can able to change the picture size as 16:9 manually, is it possible to open the camera by setting the picture size as 16:9 programatically.

the code below invokes the camera

Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION|Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
intent.putExtra(MediaStore.EXTRA_OUTPUT, imgUri);
startActivityForResult(intent, REQUEST_CAMERA);
like image 879
Aravindh Kumar Avatar asked Nov 08 '22 15:11

Aravindh Kumar


1 Answers

is it possible to open the camera by setting the picture size as 16:9 programatically

No.

There is no requirement for the camera hardware on a device to support 16:9.

Even for those devices that support such a resolution, there is no requirement for a camera app to support 16:9.

Even for those camera apps that support such a resolution, there is no standard means to request this via ACTION_IMAGE_CAPTURE.

like image 122
CommonsWare Avatar answered Nov 14 '22 22:11

CommonsWare