On my Samsung Tab 3 running Android 4.1.2 multiple copies to clipboard produce a clipboard containing each copy. This is seen through a button on the tight bottom of the slide-up keyboard.
I'd like to delete all these copies programmatically, however, the ClipboardManager doesn't appear to offer methods to do this. How can delete everything that has been copied to the clipboard?
Thanks,
Chris
ClipboardManager clipService = (ClipboardManager)activity.getSystemService(Context.CLIPBOARD_SERVICE);
ClipData clipData = ClipData.newPlainText("", "");
clipService.setPrimaryClip(clipData);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With