Android Clipboard Paste paste(Context context)

Here you can find the source of paste(Context context)

Description

paste

Declaration

public static String paste(Context context) 

Method Source Code

//package com.java2s;
import android.content.Context;
import android.text.ClipboardManager;

public class Main {

    public static String paste(Context context) {
        ClipboardManager cmb = (ClipboardManager) context
                .getSystemService(Context.CLIPBOARD_SERVICE);
        return cmb.getText().toString().trim();
    }/*from w ww  . ja v a 2  s . c o m*/
}

Related

  1. paste(Context context)
  2. copyStringToClipboard(Context context, String string, int toastText)
  3. getClipboard(Context context)
  4. pasteText(Context context)