I just discovered that this code goes to crash my app only on android 2.x
ClipboardManager clipboard = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);
clipboard.setText(textView1.getText());
I think… I need add check android version before run this method, which is correct code to permit runs also on android 2.x?
Thanks!
Clipboard API has changed on level 11 of Android SDK. Here is some code to handle both versions from arinkverma.
I hope this can get into support library one day.