Why doesn't this code send anything to other Applications ? It just opens other applications
- 阅读更多 关于 Why doesn't this code send anything to other Applications ? It just opens other applications
问题 I have this code for selecting a textView and copying to clipboard : txt=(TextView)findViewById(R.id.textView1); int startIndex = txt.getSelectionStart(); int endIndex = txt.getSelectionEnd(); final String stringYouExtracted = txt.getText().toString().substring(startIndex, endIndex); ClipboardManager clipboard = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE); clipboard.setText(stringYouExtracted); I want put a button that when I press it , sends text that I have selected it in