Intent is null while opening camera
So i have a function to open camera and gallery and i have an image view to set that image and save it in room database. When i am selecting gallery everything works fine image is displayed in image view and also saved in room database but when i capture image from camera intent received in start activity result is null. hence data.data is also null
private fun imageChooser (activity: Activity) {
val i = Intent ()
i.type = "image/*"
i.action = Intent.ACTION_GET_CONTENT...