意图在方形模式下打开默认摄像头



我可以通过此意图打开一个相机:

Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
                // Ensure that there's a camera activity to handle the intent
                if (takePictureIntent.resolveActivity(getPackageManager()) != null) {
                    // Create the File where the photo should go
                    File photoFile = null;
                    try {
                        photoFile = Utility.createImageFile(BotActivity.this);
                    } catch (IOException ex) {
                        // Error occurred while creating the File
                    }
                    // Continue only if the File was successfully created
                    if (photoFile != null) {
                        Uri photoURI = FileProvider.getUriForFile(BotActivity.this,
                                "com.kutumbita.app.fileprovider",
                                photoFile);
                        takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);
                        startActivityForResult(takePictureIntent, CAMERA_CAPTURE_REQUEST);
                    }
                }

目的有任何方法可以启动平方尺寸的相机?

我已经提到了解决方案,这是本机Android SDK不可能的。谢谢

最新更新