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  w w  .  j av a2  s  .  c o m*/
}

Related

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