# I need to find these libraries

**URL:** <https://discourse.processing.org/t/i-need-to-find-these-libraries/20484>\
**Category:** Processing for Android\
**Created:** [May 5, 2020, 12:00am UTC](https://discourse.processing.org/t/i-need-to-find-these-libraries/20484 "2020-05-05T00:00:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [May 5, 2020, 6:43am UTC](https://discourse.processing.org/t/i-need-to-find-these-libraries/20484/2 "2020-05-05T06:43:44Z")

</div>

Hi @Malsvir  
See if this is working for you.

```auto
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Intent;
import android.content.Context;
import android.app.Activity;
import android.os.Looper;

Activity act;
Context cnt;

void setup () {
  background(255);
  fill(0);
  textSize(40);
  textAlign(CENTER);
  act = this.getActivity();
  cnt = act.getApplicationContext();
  Looper.prepare();
  String str = "myClipboardString";
  
  // Copy to clipboard
  android.content.ClipboardManager clipboard = (android.content.ClipboardManager) cnt.getSystemService(Context.CLIPBOARD_SERVICE);
  android.content.ClipData clip = android.content.ClipData.newPlainText("text", str);
  clipboard.setPrimaryClip(clip);
  
  // Paste string from clipboard
  CharSequence cs = clipboard.getPrimaryClip().getItemAt(0).getText();
  String str_paste = String.valueOf(cs);
  text(str_paste, width/2, height/2);
}

void settings (){
  fullScreen();
}

```

---

_[View the full topic](https://discourse.processing.org/t/i-need-to-find-these-libraries/20484)._
