List of utility methods to do Clipboard Get
CharSequence | getText(final Context context) get Text if (context == null) return null; return ((ClipboardManager) context .getSystemService(Context.CLIPBOARD_SERVICE)).getText(); |
String | getContent(Context context) get Content if (context == null) { return ""; ClipboardManager cbm = (ClipboardManager) context .getSystemService(Context.CLIPBOARD_SERVICE); String text = ""; if (cbm != null && !TextUtils.isEmpty(cbm.getText())) { text = cbm.getText().toString().trim(); ... |