Android Utililty Methods Clipboard Get

List of utility methods to do Clipboard Get


The list of methods to do Clipboard Get are organized into topic(s).


CharSequencegetText(final Context context)
get Text
if (context == null)
    return null;
return ((ClipboardManager) context
StringgetContent(Context context)
get Content
if (context == null) {
    return "";
ClipboardManager cbm = (ClipboardManager) context
String text = "";
if (cbm != null && !TextUtils.isEmpty(cbm.getText())) {
    text = cbm.getText().toString().trim();