You don't need Intent to pass image data from one Activity of your app to another. Actually, you cannot use Intent to pass a picture: there are restrictions on the size of the data bundled with Intent. So, you can use Intent extras to pass the path to an image, or some parameters extracted from the image. The Camera app uses intent extra("data")
to return a thumbnail (very small) image.
Using the standard MediaStore.ACTION_IMAGE_CAPTURE
Intent for latest devices which feature hardware.camera2 API is not different from the older devices that used the deprecated hardware.Camera.
You can employ some private Intent-based mechanism to communicate between activities of your app. In this case the consumer will probably pass necessary parameters to capture activity with startActivityForResult()
and get the results in onActivityResult()
. There are no methods in hardware.camera2 that can (or could be expected to) help you with these tasks.