@Override
    protected void onPostExecuteInternal(final Boolean result) {
        if (activity != null) {
            final Context nonNullActivity = activity;
            if (result && exportUri != null) {
                Settings.setFieldnoteExportDate(System.currentTimeMillis());

                ShareUtils.shareOrDismissDialog(activity, exportUri, "text/plain", R.string.export, name + " " + nonNullActivity.getString(R.string.export_exportedto) + ": " + UriUtils.toUserDisplayableString(exportUri));

                if (upload) {
                    ActivityMixin.showToast(activity, nonNullActivity.getString(R.string.export_fieldnotes_upload_success));
                }
            } else {
                ActivityMixin.showToast(activity, nonNullActivity.getString(R.string.export_failed));
            }
        }
    }
Instantiates and configures the task for exporting field notes.

@param activity optional: Show a progress bar and toasts
@param upload   Upload the Field Note to geocaching.com
@param onlyNew  Upload/export only new logs since last export
main/src/main/java/cgeo/geocaching/export/FieldNoteExportTask.java