소스는 다음과 같습니다.

버튼을 누르면 내장카메라 실행후 사진을 찍고 저장을 누르면 돌아와서 이미지뷰에 찍은 사진을 뿌리는 소스를 만들려고 하고 있습니다.


Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);

startActivityForResult(cameraIntent,1);

이렇게 하고

profileBitmap = (Bitmap)data.getExtras().get("data");
profileView.setImageBitmap(profileBitmap);

이렇게 하면 바로 이미지뷰에 뜨긴하나 썸네일 크기라서 원래 화질을 불러올수가 없더군요.

그래서 이래저래 수정해서 아래와 같이 바꿨는데

사진을 찍고 저장하고나면 이미지뷰에 사진이 뜨지 않더군요 ㅜ.ㅜ

정말 이것 때문에 며칠째 고생하는지 모르겠습니다. 제발 누가 도움좀 주세요!!

package com.camera;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.provider.MediaStore.Images;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

public class Camera extends Activity {
    /** Called when the activity is first created. */
   
 private Bitmap profileBitmap;
 private ImageView profileView;
 private Button b;
 @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        profileView = (ImageView)findViewById(R.id.iv);
        b = (Button)findViewById(R.id.bttn);
        b.setOnClickListener(new View.OnClickListener() {
   
   @Override
   public void onClick(View v) {
    // TODO Auto-generated method stub
    Intent i = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
    i.putExtra("filename",   MediaStore.Images.Media.EXTERNAL_CONTENT_URI);

          startActivityForResult(i, 1);

   }
  });

            }

 @Override
 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
  // TODO Auto-generated method stub
  super.onActivityResult(requestCode, resultCode, data);
  if(requestCode !=0){
   if(requestCode ==1 && !data.equals(null)){
    try{
     Intent j = getIntent();
     Bundle extras = j.getExtras();
     String imgpath = extras.getString("filename");
     
     BitmapFactory.Options bfo = new BitmapFactory.Options();
     bfo.inSampleSize = 2;
                    profileBitmap = BitmapFactory.decodeFile(imgpath, bfo);
                   
     profileView.setImageBitmap(profileBitmap);
   }
    catch(Exception e){
     
    }
   }
  }
 }
   
   
}