Intent intent = new Intent(android.content.Intent.ACTION_SEND);
intent.setType(“text/plain”);
intent.putExtra(android.content.Intent.EXTRA_TEXT, “Your Link”);
intent.putExtra(android.content.Intent.EXTRA_SUBJECT, “Some extra text if you want it”);
startActivity(Intent.createChooser(intent, “Share via”));
intent.setType(“text/plain”);
intent.putExtra(android.content.Intent.EXTRA_TEXT, “Your Link”);
intent.putExtra(android.content.Intent.EXTRA_SUBJECT, “Some extra text if you want it”);
startActivity(Intent.createChooser(intent, “Share via”));
No comments:
Post a Comment