i have created a copy button succesfully that copy my textview but when i try it out it doesn't work even though the text copied to clipboard appears but still the textview haven't been copied
this is my code in SecondActivity.java containing the copy button
button = (Button) findViewById(R.id.button1);
button.setOnClickListener(new View.OnClickListener() {
public void onClick(View arg0) { getSystemService(CLIPBOARD_SERVICE);
Toast.makeText(getApplicationContext(), "Text copied to clipboard", Toast.LENGTH_SHORT).show();
}
});
}
i hope you can help me and thanks in advance