public boolean onActivityResult(final int requestCode, final int resultCode, final Intent intent) {
        final SelectAction action = SelectAction.getByRequestCode(requestCode);
        if (action == null) {
            return false;
        }
        if (runningIntentData == null) {
            // this is not an error! It might mean that activity was requested by another instance of the Helper (thus using same requestCodes)
            // -> signal that result was NOT handled
            return false;
        }

        try {

            final boolean resultOk = resultCode == Activity.RESULT_OK && intent != null;

            switch (action) {
                case SELECT_FOLDER:
                    handleResultFolderSelection(intent, resultOk);
                    break;
                case SELECT_FOLDER_PERSISTED:
                    handleResultPersistableFolderSelection(intent, resultOk);
                    break;
                case SELECT_FILE:
                case SELECT_FILE_MULTIPLE:
                case SELECT_FILE_PERSISTED:
                    handleResultSelectFiles(action, intent, resultOk);
                    break;
                default: //for codacy
                    break;
            }
            return true;
        } finally {
            //Make sure to delete the runningIntentData when the request was handled!
            runningIntentData = null;
        }
    }
You MUST include in {@link Activity#onActivityResult(int, int, Intent)} of using Activity
main/src/main/java/cgeo/geocaching/storage/ContentStorageActivityHelper.java