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 Uri getUri(Context context) { ClipboardManager clipboard = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE); ClipData clip = clipboard.getPrimaryClip(); if (clip != null && clip.getItemCount() > 0) { return clip.getItemAt(0).getUri(); } return null; } }