private void handleResultFolderSelection(final Intent intent, final boolean resultOk) {
        final Uri uri = !resultOk || intent == null ? null : intent.getData();
        final Folder folder = uri == null ? null : Folder.fromDocumentUri(uri);

        if (uri == null) {
            report(true, R.string.contentstorage_folder_selection_aborted, "---");
        } else {
            report(true, R.string.contentstorage_folder_selection_success, uri);
        }
        callCallback(SelectAction.SELECT_FOLDER, folder);
    }
You MUST include in {@link Activity#onActivityResult(int, int, Intent)} of using Activity
main/src/main/java/cgeo/geocaching/storage/ContentStorageActivityHelper.java