android ClipboardManager的用法

1、API 11之后: android.content.ClipboardManager。调用方式:

ClipboardManager cm = (ClipboardManager) this.getSystemService(this.CLIPBOARD_SERVICE);
cm.setPrimaryClip(ClipData.newPlainText("hello", "hello"));


参考:

http://developer.android.com/reference/android/content/ClipboardManager.html

http://developer.android.com/reference/android/content/ClipData.html


你可能感兴趣的:(Android-框架层)