public void doTakeAlbumAction() {
// 앨범 호출
Intent intent = new Intent(Intent.ACTION_PICK);
intent.setType(android.provider.MediaStore.Images.Media.CONTENT_TYPE);
File path = new File(Environment.getExternalStorageDirectory(),"mypicture");
intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(path));
startActivityForResult(intent, PICK_FROM_ALBUM);
}
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (resultCode != RESULT_OK) {
return;
} else if (requestCode == PICK_FROM_ALBUM && resultCode == RESULT_OK) {
try{
uri = data.getData();
bmp = Images.Media.getBitmap(getContentResolver(), uri);
File folder = new File("/sdcard/temp"); //폴더생성
if(!folder.isDirectory()) // 생성된 폴더가 없을때
folder.mkdir(); // 폴더를 생성함
File file = new File("/sdcard/temp/temp.jpg"); // 파일 생성을 위한 위치 지정
FileOutputStream fileStream = new FileOutputStream(file); // 파일 저장을 위한 파일스트림
bmp.compress(CompressFormat.JPEG, 100, fileStream); // 이미지를 jpeg 압축으로 퀄리티 100%(최상)으로 생성
//bmp.recycle();
}catch (Exception e) {
e.printStackTrace();
}
Intent intent = new Intent(CameraPR.this, ImageEdit.class);
startActivity(intent);
}
}
이렇게 보내고
다른파일에서
imageV = (ImageView) findViewById(R.id.image_view);
bmp = BitmapFactory.decodeFile("/sdcard/temp/temp.jpg");
new File("/sdcard/temp/temp.jpg").delete();
imageV.setImageBitmap(bmp);
이렇게 불러옵니다.. 그리고 이미지뷰에 뿌려주는데
갤럭시만되네요 나머지 기종은 까만화면만 나오고;; 해결방법좀 알려주세요




intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(path));
아마 이 부분이 기종마다 다르게 적용되던걸로 기억하네요
넥원도 되긴 될껄요