public boolean onActivityResult(final int requestCode, final int resultCode, final Intent data) {
        final IntentContextData storedData = runningIntents.getParcelable("" + requestCode);
        runningIntents.remove("" + requestCode);

        if (storedData == null) {
            return false;
        }

        if (!checkBasicResults(resultCode)) {
            return true;
        }

        switch (requestCode) {
            case REQUEST_CODE_CAMERA:
                onImageFromCameraResult(storedData);
                break;
            case REQUEST_CODE_STORAGE_SELECT:
            case REQUEST_CODE_STORAGE_SELECT_MULTI:
                onImageFromStorageResult(storedData, data);
                break;
            default:
                break;
        }
        return true;

    }
In your activity, overwrite @link Activity#onActivityResult(int, int, Intent)} and
call this method inside it. If it returns true then the activity result has been consumed.
main/src/main/java/cgeo/geocaching/ui/ImageActivityHelper.java