I want to display my image in ImageView in another activity after I captured the photo.
I have 2 activities(MainActivity,UploadActivity) and 2 layouts(main,upload).
main layout has 1button for open camera and upload layout has Imageview for display image after capture.
MainActivity for button click to open camera and UploadActivity for retrieve image to display.
this is the MainActivity
imb_eat.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
Intent intent_capture = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent_capture, 0);
}
});
}
when the camera activity finishes, you collect the data in the onActivityResult() method.
Then you can take the file your camera created and use it in another intent and then fire off fire off another activity. That activity then reads the intent data and can manipulate the photo.
}