参考网页:
http://blog.csdn.net/chenchuntong/article/details/9770657
http://www.android100.org/html/201502/22/122483.html
EditText edtMsg = (EditText)findViewById(R.id.edtMsg); edtMsg.setSelection(0, edtMsg.getText().length()); if (android.os.Build.VERSION.SDK_INT > 11) { android.content.ClipboardManager c = (android.content.ClipboardManager) getSystemService(CLIPBOARD_SERVICE); c.setText(edtMsg.getText()); // 得到剪切板里面的 字符串信息 //if (c.hasText()) // c.getText(); } else { android.text.ClipboardManager c = (android.text.ClipboardManager) getSystemService(CLIPBOARD_SERVICE); c.setText(edtMsg.getText()); }