Add Snippet |
Use this to programatically copy some useful text to the clipboard so that the users can paste it somewhere.
raw · copy · downloadClipboardManager clipboard = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE); clipboard.setText("Text to copy");
Preview
Editors
Tags
Related Snippets
Be the first to comment