안드로이드 개발 질문/답변
(글 수 45,052)
앨범에서 사진 선택 후 crop이 실행되고 crop된 이후의 이미지를 가지고 오고 싶은데 예제를 찾아서 해봤는데 전 crop에서 저장을 눌러도 onActivityResult()함수로 넘어오지 않습니다.(로그를 찍어본 결과)
crop에서 저장을 눌러도 갤러리에서 앨범 택 화면으로 계속 남아 있습니다.
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("image/*");
intent.putExtra("crop", "true");
intent.putExtra("aspectX", 1);
intent.putExtra("aspectY", 1);
intent.putExtra("outputX", "100px");
intent.putExtra("outputY", "100px");
intent.putExtra("return-data", true);
intent.putExtra("scale", true);
startActivityForResult(intent, PHOTO_PICKED_WITH_DATA);
이것이 앨범에서 crop까지 보내는 소스인데 왜 안넘어 오는걸까요??




crop 된 이미지가 100kb 이상이면 에러가 발생하여 넘어오지 않게됩니다