- add variable: String (share)
((ClipboardManager) getSystemService(getApplicationContext().CLIPBOARD_SERVICE)).setPrimaryClip(ClipData.newPlainText("clipboard", textview1.getText().toString()));
SketchwareUtil.showMessage(getApplicationContext(), "Copy to Clipboard");
share = textview1.getText().toString();
Intent i = new Intent(android.content.Intent.ACTION_SEND);i.setType("text/plain"); i.putExtra(android.content.Intent.EXTRA_TEXT, share); startActivity(Intent.createChooser(i,"Share using"));
https://sketchware.pro/download#download
©2024 Sketchub | User Policy