public void onClick(View v) {
// TODO Auto-generated method stub
switch (v.getId()) {
case R.id.image1:
i = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(i, cameraData);
break;
case R.id.image2:
ii = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(ii, cameraData);
}
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
// TODO Auto-generated method stub
super.onActivityResult(requestCode, resultCode, data);
if (resultCode == RESULT_OK) {
Bundle extras = data.getExtras();
bmp = (Bitmap) extras.get("data");
view1.setImageBitmap(bmp);
view2.setImageBitmap(bmp);
}
}
I would like to take two images with a camera and display these images into two separate ImageViews
.I took a picture but it shows the same image in both ImageViews
.Please help i'm really stuck.