Answers for "How to copy all text to clipboard android studio"

3

android copy text to clipboard programmatically

import android.content.ClipboardManager;

// ...

ClipboardManager clipboard = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE); 
ClipData clip = ClipData.newPlainText("label", "Text to copy");
clipboard.setPrimaryClip(clip);
Posted by: Guest on December-26-2020
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

Code answers related to "How to copy all text to clipboard android studio"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language