Android

Android Text ClipBoard에 복사하기

Ms_Tony 2015. 10. 15. 16:32

ClipboardManager clipboard = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);

ClipData clip = ClipData.newPlainText("label",복사할 텍스트);

clipboard.setPrimaryClip(clip);

Toast.makeText(mContext, "주소가 클립보드에 복사되었습니다!", Toast.LENGTH_SHORT).show();


출처 : http://joujae.tistory.com/40