인텐트를 이용하여 기본 카메라 앱을 실행하였는데
하단에 갤러리 썸네일이 비어있네요.
혹시
원래 갤러리에 있는 목록들이 아래에 나와야 하지 않나요?
혹시 이런 경우 겪어보신 분 있으신 분 조언 부탁드립니다ㅎ
========================================
Intent intent = new Intent();
intent.setAction(MediaStore.ACTION_IMAGE_CAPTURE);
filePath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);
fileName = System.currentTimeMillis() + ".jpg";
File file = new File(filePath, fileName);
if(!filePath.exists()) {
filePath.mkdirs();
}
Uri uri = Uri.fromFile(file);
intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, uri);
startActivity(intent);
================================================
스샷도 첨부합니다.
왼쪽이 카메라 앱을 실행한 경우, 오른쪽이 위 코드를 통해 카메라앱을 실행한 경우입니다.
보시면 위 코드를 통해 카메라앱을 실행한 경우엔 좌측 하단에 갤러리 썸네일이 비어있네요..
눌러도 아무 액션이 없어요ㅠ
비슷한 문제 해결하신 적 있으신 분 도움 부탁드립니다!
