Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sharedText = String.replace("youtube.com/", "youMYtube.com/");
- Toast.makeText(this, sharedText, Toast.LENGTH_LONG).show();
- Intent shareIntent = new Intent(Intent.ACTION_SEND);
- shareIntent.setType("text/plain");
- shareIntent.putExtra(Intent.EXTRA_TEXT, sharedText);
- startActivity(Intent.createChooser(shareIntent, "Share..."));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement