take picture from camera and choose from gallery and display in Image view
问题 I want to take photos from gallery and set it in my ImageView as well as I want to take photo from camera and set it into my same Image View. I am very much stuck on this. Can anyone help me? Thanks. 回答1: You can handle your camera view click this way: cameraImageView.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent("android.media.action.IMAGE_CAPTURE"); startActivityForResult(intent, 0); } }); Do this in your activity when you