@Override
    protected void onPostExecuteInternal(final Uri uri) {
        final Activity activityLocal = activity;
        if (activityLocal != null) {
            if (uri != null) {
                ShareUtils.shareOrDismissDialog(activityLocal, uri, "application/xml", R.string.export, name + ' ' + activityLocal.getString(R.string.export_exportedto) + ": " + UriUtils.toUserDisplayableString(uri));
            } else {
                ActivityMixin.showToast(activityLocal, activityLocal.getString(R.string.export_failed));
            }
        }
    }
Instantiates and configures the task for exporting gpx files.

@param activity optional: Show a progress bar and toasts
main/src/main/java/cgeo/geocaching/export/GpxExportTask.java