Java tutorial
//package com.java2s; import android.content.Context; import android.text.ClipboardManager; public class Main { public static String getCurrentClipContent(Context context) { ClipboardManager clipboardManager = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE); return clipboardManager.getText() == null ? null : clipboardManager.getText().toString(); } }