Online said in the use of Clipboardmanager when the guide package is as follows:
API 11 Before: android.text.clipboardmanager-->1
After API 11: android.content.clipboardmanager-->2
Whether you import only package 1, import only package 2, or import together, you will see the following issues
Compile without errors, the following dialog box appears when the button is pressed at run time
sorry! The process Android.process.acore has stopped unexpectedly. Please try again.
And see that Eclipse has a series of big problems.
Logcat
Could not find class ' Android.content.ClipboardManager ', referenced from method Com.example.testcopy.MainActivity.copyFromResourceText
Could not Find Method Blahblah
Vfy:dead code xxxxx in Xxxxx/mainacitivity;,xxx (method)
......
Solution: The androidmanifest.xml in the android:minsdkversion changed to 11, temporary temporary expediency, and will be slowly found in the future of the law.
This article from "Chronosphere" blog, reproduced please contact the author!
2015.01.19android error set about the Clipboard