Image chooser using ActivityResultContracts but using my own Uri?
I'm new to android development in general so I apologize if the question doesn't make sense.
I'm hosting a Fragment with an ImageView and two buttons, one to set the ImageView through taking a picture, one to set it by choosing from gallery. This is how I create the Uri, which is later used for setting the image:
photoUri=FileProvider.getUriForFile( requireContext(),"com.ron44.myapp",File.createTempFile("temp",".jpg"))
This works well for taking the picture with camera because it takes my...