List of usage examples for android.content ClipData newIntent
static public ClipData newIntent(CharSequence label, Intent intent)
From source file:Main.java
/** * Copy intent to Clipboard/*www. ja va 2 s .c om*/ * * @param context * @param intent */ public static void copy(Context context, Intent intent) { ClipboardManager clipboard = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE); clipboard.setPrimaryClip(ClipData.newIntent(null, intent)); }