Java tutorial
//package com.java2s; import android.content.ClipData; import android.content.ClipboardManager; import android.content.Context; import android.net.Uri; public class Main { public static void copyUri(Uri uri, Context context) { ClipboardManager clipboard = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE); clipboard.setPrimaryClip(ClipData.newUri(context.getContentResolver(), "uri", uri)); } }