问题
this is my first question, so be gentle :)
I'm trying to clear the clipboard in Android. I've read doc the doc for the ClipboardManager and the public methods don't seem germane:
http://developer.android.com/reference/android/text/ClipboardManager.html
Any ideas of where I should start?
回答1:
have you considered just setting it to empty string?
回答2:
Try setText(null) on ClipBoardManager.
回答3:
setText(null)
on ClipBoardManager do not Clears the ClipBoard. While pesting on some other location its prompting Paste from clipboard and this option shows all text in the clip board. As per my assumption Clipbioard keeps letest text but its keeping History of Copied text.
- Copy Text From any Edit text
- Press Home->compose new msg
- long press edit text view
- Paste from clipboard (All text comes from the past copy)
回答4:
From the clipboard manager, do one of the following:
To delete a single item: Long-tap item, then tap "Remove Text"
To clear all clipboard history: Press the MENU button, then tap "Clear Clipboard."
回答5:
Power off device. Turn device back on. Go to messaging. Long press. you will then see paste, and Clouseau. Hit clip tray then it'll show all copied entries delete. Hope this helps
回答6:
Android L70. Open up a blank message. Press your finger in the text input box and hold down until the blue marker appears. Select Clip-tray. The items you are trying to delete should appear in there. Press on one item and hold firmly until the red x boxes appear against each item. Then click the red x for each item you want to delete. (If you lift your finger too quickly all this will do is Paste so hold down for longer.)
来源:https://stackoverflow.com/questions/4404243/clear-clipboard-on-android