I am trying to add a button that will copy the text and i got this error. What is static content. what should i use if I can't use this?
cButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
myClipboard = (ClipboardManager)getSystemService(CLIPBOARD_SERVICE);
String text;
text=EditText.getText().toString();
myClip=ClipData.newPlainText("this is the text", text);
Toast.makeText(getApplicationContext(),"Text Sucessfully Copied",Toast.LENGTH_SHORT).show();
}
});