public static void sharePlainText(final Context context, final String text) {
        final Intent intent = createShareIntentInternal(context, TYPE_TEXT, null, text, null, null);
        shareInternal(context, intent, R.string.context_share_as_text);
    }
context needs to be filled only when file is not null
main/src/main/java/cgeo/geocaching/utils/ShareUtils.java