Miro Fq

Miro Fq

  • 2.1k
  • 22
  • 845

Image captured from camera not showing on next activity Android Studio

Dec 3 2020 11:19 AM
I'm targeting my app at SDK 28 so I need to use file provider to save captured image. My code function well for select image from gallery and successfully retrieved the intended image to next activity (DetectionActivity).
However I couldnt retrieve the image captured from camera to (DetectionActivity). In this case, the image has been saved in my storage device so the file provider works well. Just that it wont display in next activity. I think its because of the image Uri but not so sure.
Attached is my SelectImageActivity and DetectionActivity.
Please help me on passing the image captured to DetectionActivity.
p/s : the code got no error, it just allow user to open camera, snap picture but after that return to the same activity.

Attachment: Activity.zip

Answers (1)