I am writing code to copy specific content on any event.
Android provides clipboard-based framework to do this task.
Clipboard is represented by ClipboardManager class. To instantiate it, we need to call getSystemService(CLIPBOARD_SERVICE)
Then we create ClipData object to add data to the clipboard.
We have some ClipData methods like newPlainText(label, text),newUri(resolver, label, URI) and newIntent(label, intent)