마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

사진이나 동영상 촬영할때 해상도가 너무 높은데 바꾸는 방법좀요

0 추천
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);
   }

이렇게 해서 사진이나 동영상 촬영하는걸 호출하는데요

이때 해상도가 다 최상으로 설정되어 있더라구요

직접 바꾸면 되긴 하는데 할때마다 그렇게 하기가 힘드니

호출할때 특정 해상도로 바꿔서 호출하는 방법좀 알려주세요
김기훈 (390 포인트) 님이 2013년 4월 2일 질문

1개의 답변

0 추천

http://blog.naver.com/PostView.nhn?blogId=dythmall&logNo=30096952693&parentCategoryNo=8&viewDate=&currentPage=1&listtype=0

자세히 설명되어있는 블로그가 있습니다.

 

다만 이게 모든 기기에서 동작하는것은 아닙니다.
특정 기기에서 작동하지 않을시에 예외처리는 하셔야 할거에요

Noizbuster (11,970 포인트) 님이 2013년 4월 2일 답변
...