Answers for "how to add copy to clipboard button android"

0

copy to clipboard android studio

ClipboardManager clipboard = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE); 
 ClipData clip = ClipData.newPlainText(label, text);
 clipboard.setPrimaryClip(clip);
Posted by: Guest on August-09-2020
0

kotlin copy text android 10

fun copyText(text:String){
            val myClipboard = context.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
            val myClip: ClipData = ClipData.newPlainText("Label", text)
            myClipboard.setPrimaryClip(myClip)
        }
Posted by: Guest on September-01-2020
0

how to add copy to clipboard button android

ClipboardManager clipboard = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE); 
 ClipData clip = ClipData.newPlainText(label, text);
 clipboard.setPrimaryClip(clip);
Posted by: Guest on June-08-2020

Code answers related to "how to add copy to clipboard button android"

Browse Popular Code Answers by Language