This is my code:
Button copy;
Button previous;
Button more;
TextView screen;
String quote=screen.getText().toString();
I need the button copy to copy the value of the variable quote. How can I do this? I’ve tried:
ClipboardManager clipboard = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);
clipboard.setText(screen.getText());
but it works only on Android 4.0+ devices.
I think your import is wrong.
Use
and not