void VideoCapture() {
//카메라 호출 intent 생성
Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
File file = new File(Environment.getExternalStorageDirectory(), SAMPLEVIDEO);
intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(file));
startActivityForResult(intent, REQUEST_VIDEO);
}
//사진 촬영
void takePicture() {
//카메라 호출 intent 생성
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
File file = new File(Environment.getExternalStorageDirectory(), SAMPLEIMG);
intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(file));
startActivityForResult(intent, REQUEST_PICTURE);
}
이렇게 해서 사진이나 동영상 촬영하는걸 호출하는데요
이때 해상도가 다 최상으로 설정되어 있더라구요
직접 바꾸면 되긴 하는데 할때마다 그렇게 하기가 힘드니
호출할때 특정 해상도로 바꿔서 호출하는 방법좀 알려주세요