【发布时间】:2019-10-30 12:57:42
【问题描述】:
我正在 Note 9 上开发我的应用程序。 如果我打开普通相机,我可以看到白平衡、对比度、亮度等功能和全景拍摄。
但如果我打开我开发的应用程序,我看不到这些功能。只有手电筒、相机、视频。
如果用户的手机有,我该如何在我的应用程序中添加这些功能呢?
/**
* Capturing Camera Image will launch camera app requested image capture
*/
private void captureImage() {
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
File file = CameraUtils.getOutputMediaFile(MEDIA_TYPE_IMAGE);
if (file != null) {
imageStoragePath = file.getAbsolutePath();
}
Uri fileUri = CameraUtils.getOutputMediaFileUri(getApplicationContext(), file);
intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri);
// start the image capture Intent
startActivityForResult(intent, CAMERA_CAPTURE_IMAGE_REQUEST_CODE);
}
还有我的manifest:
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
【问题讨论】:
标签: android