@Override
    protected Boolean doInBackgroundInternal(final Geocache[] caches) {
        try {
            int i = 0;
            for (final Geocache cache : caches) {
                final IConnector connector = ConnectorFactory.getConnector(cache);
                publishProgress(++i);
                if (connector instanceof PersonalNoteCapability && StringUtils.isNotBlank(cache.getPersonalNote())) {
                    ((PersonalNoteCapability) connector).uploadPersonalNote(cache);
                    persNotesCount++;
                }
            }
        } catch (final Exception e) {
            Log.e("PersonalNoteExport.ExportTask uploading personal notes", e);
            return false;
        }
        return true;
    }
Instantiates and configures the task for exporting personal notes.
main/src/main/java/cgeo/geocaching/export/PersonalNoteExportTask.java