This tutorial describes how to provide the Direct Share feature. The app shows some options directly in the list of share intent candidates.
Now, Suppose you want to share a particular text via any application in your phone, on a button click, then simply call the below mentioned intent on button click event :
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
sharingIntent.setType(\"text/plain\");
sharingIntent.putExtra(Intent.EXTRA_TEXT, mEditBody.getText().toString());
startActivity(Intent.createChooser(sharingIntent, getString(R.string.send_intent_title)))
And You Are Done! :)
Check the Screeenshots Below.
For Any query or assistance, drop a mail on my mail id.
Now, Suppose you want to share a particular text via any application in your phone, on a button click, then simply call the below mentioned intent on button click event :
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
sharingIntent.setType(\"text/plain\");
sharingIntent.putExtra(Intent.EXTRA_TEXT, mEditBody.getText().toString());
startActivity(Intent.createChooser(sharingIntent, getString(R.string.send_intent_title)))
And You Are Done! :)
Check the Screeenshots Below.
For Any query or assistance, drop a mail on my mail id.
No comments:
Post a Comment