public static void shareLink(final Context context, final String subject, final String url) {
        shareInternal(context, getShareLinkIntent(context, subject, url), R.string.context_share_as_link);
    }
context needs to be filled only when file is not null
main/src/main/java/cgeo/geocaching/utils/ShareUtils.java