public boolean onActivityResult(final int requestCode, final int resultCode, final Intent data) {
        allowOpenViewer();
        //in some situations "onActivityReenter" is not called. In these cases -> initialize position here
        if (!activityReenterCalled) {
            onActivityReenter(activity, this, data);
        }
        activityReenterCalled = false;
        if (imageHelper != null) {
            return imageHelper.onActivityResult(requestCode, resultCode, data);
        }
        return false;
    }
Important: include this method in your activity to support activity-related tasks. Necessary for e.g. editable categories
main/src/main/java/cgeo/geocaching/ui/ImageGalleryView.java