@Nullable
    public static Intent createClipboardIntent(final Context context, final CharSequence text, final Uri uri) {
        if (context == null || (text == null && uri == null)) {
            return null;
        }
        final Intent clipboardIntent = new Intent(context, CopyToClipboardActivity.class);
        clipboardIntent.putExtra(Intent.EXTRA_TEXT, text);
        clipboardIntent.putExtra(Intent.EXTRA_STREAM, uri);
        return clipboardIntent;
    }
Helper activity to copy simple content to clipboard
main/src/main/java/cgeo/geocaching/helper/CopyToClipboardActivity.java