how to copy and paste text from another app to edittext android kotlin code example
Example: 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)
}