Skip to main content
Language

From Camera

Start Camera#

Start the camera for result using the ACTION_IMAGE_CAPTURE action. We use FileProvider to get the Uri of the file to which the captured photo would be saved and pass it as an extra to the Intent.

Handle Camera Result#

If the camera exits with Activity.RESULT_OK, we get the Uri of the captured photo using Uri.fromFile().

Start Editor#

Configure the LoadSettings to set the source to the Uri of the captured photo. The PhotoEditorBuilder takes in the configured PhotoEditorSettingsList and starts the photo editor. The result is obtained in the onActivityResult() method when the editor exits.