Copy Text to Clipboard

1 vote · 0 comments

Use this to programatically copy some useful text to the clipboard so that the users can paste it somewhere.

raw ·
copy
· download
ClipboardManager clipboard = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE); clipboard.setText("Text to copy");

Be the first to comment

Sign in with OpenID