에 선택한 이미지를 저장할.
하지만 당신은 당신의 표면보기에 문제가있는 경우 다음이 코드를 가지고 ...
View viewControl = controlInflater.inflate(R.layout.camara_view, null);
LayoutParams layoutParamsControl = new LayoutParams(
LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
this.addContentView(viewControl, layoutParamsControl);
btnGallary = (Button) findViewById(R.id.btnGallery);
btnCaptureImage = (Button) findViewById(R.id.btnCaptureImage);
// Button buttonTakePicture = (Button)findViewById(R.id.takepicture);
btnCaptureImage.setOnClickListener(new Button.OnClickListener() {
@Override
public void onClick(View arg0) {
camera.takePicture(myShutterCallback, myPictureCallback_RAW,
myPictureCallback_JPG);
}
});
btnGallary.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// Intent intent = new Intent(getApplicationContext(),
// ImageGallery.class);
// startActivity(intent);
Intent intent = new Intent(
Intent.ACTION_PICK,
android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI);
startActivityForResult(intent, REQUEST_CODE);
}
});
은 SD 카드에 이미지를 저장 하시겠습니까? –
예 내가 만든 Diese 폴더의 내 sdcard에 이미지를 저장하고 싶습니다. – sittu