title: How can I find out what's in the Android LG device "Clip Tray"?
body: <p>LG phones have a "Clip Tray" that contains several recent cuts. </p>
  
  <p><a href="https://i.stack.imgur.com/Pu6SF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Pu6SF.png" alt="enter image description here"></a></p>
  
  <p>I have found it useful in one context. And it overlaps the Android clipboard in that that if I add a <code>String</code> to the Android clipboard (via <code>addToClipboard</code>, below), that <code>String</code> also goes onto the top of the LG Clip Tray.</p>
  
  <p>How to add a <code>String</code>, <code>s</code>, for example, to the Android clipboard:</p>
  
  <pre><code>  public void addToClipboard(String s){
      ClipboardManager
          clipboard;
          clipboard = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);
          clipboard.setPrimaryClip(ClipData.newPlainText("", (CharSequence) s));
    }
  </code></pre>
  
  <p>This also adds <code>s</code> to the LG Clip Tray.</p>
  
  <p>In trying to control to a degree what goes into the Android clipboard, I check a couple of things (whether similar to previous or too short) to see if the last <code>String</code> put there (and into the LG Clip Tray) should be put into the clipboard:</p>
  
  <pre><code>  public void maybeAddToClipboard(String s){
      ClipboardManager clipboard = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);
  
      if(   clipboard.getPrimaryClip() == null
          ||
            (   !   clipboard.getPrimaryClip().toString().contains(s)
                &amp;&amp;  s.length() &gt; 3
            )
         )
         addToClipboard(s);
    }
  </code></pre>
  
  <p>Debugging shows that, regardless of the LG Clip Tray size as I see it on the screen (e.g., in the screen shot), the Android clipboard only has ONE item in it, the last put there. That is, <code>clipboard.getPrimaryClip().getItemCount()</code> is always 1.</p>
  
  <p>Does anybody know how to access the entire LG Clip Tray? (If not, I'm also wondering how to make the Android clipboard contain more than the 1 item always reported by <code>getItemCount</code>, but I haven't researched that.)</p>
  
  <p>Or do you have a suggestion about how to approach trying to find out?</p>
  
  <p>Or is this Question about a far too restrictive device feature to warrant SO's time and resources?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>It's not so restrictive. <a href="https://stackoverflow.com/questions/4404243/clear-clipboard-on-android">Here's</a> a related Question that's about a device that is NOT LG--It's a Moto Droid</p>