# 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:** 3

<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, 7:47am UTC](https://discourse.processing.org/t/i-need-to-find-these-libraries/20484/3 "2020-05-05T07:47:03Z")

</div>

To ensure that the clipboard has the right content you could use this code to paste.

```auto
import android.content.ClipDescription;

// Paste string from clipboard
  if (clipboard.hasPrimaryClip()) {
    android.content.ClipDescription description = clipboard.getPrimaryClipDescription();
    android.content.ClipData data = clipboard.getPrimaryClip();
    if (data != null && description != null && description.hasMimeType(ClipDescription.MIMETYPE_TEXT_PLAIN)) {
      String str_paste = String.valueOf(data.getItemAt(0).getText());
      text(str_paste, width/2, height/2);
    }
  }

```

---

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