private void addOrEditImage(final int imageIndex) {
        final Intent selectImageIntent = new Intent(this.getActivity(), ImageEditActivity.class);
        if (imageIndex >= 0 && imageIndex < imageList.getItemCount()) {
            selectImageIntent.putExtra(Intents.EXTRA_IMAGE, imageList.getItem(imageIndex));
        }
        selectImageIntent.putExtra(Intents.EXTRA_INDEX, imageIndex);
        selectImageIntent.putExtra(Intents.EXTRA_GEOCODE, geocode);
        selectImageIntent.putExtra(Intents.EXTRA_MAX_IMAGE_UPLOAD_SIZE, maxImageUploadSize);

        requireActivity().startActivityForResult(selectImageIntent, SELECT_IMAGE);
    }
internally start the detail image edit dialog
main/src/main/java/cgeo/geocaching/ui/ImageListFragment.java