Check out example codes for "programmation android avoir acces à la liste des instants de partage". It will help you in understanding the concepts better.

Code Example 1

String messageToSend = "Ici tu entre le texte à envoyer";
Intent intent = new Intent(Intent.ACTION_SEND);
	intent.putExtra(Intent.EXTRA_TEXT,messageToSend);
	intent.setType("text/plain");
startActivity(intent);

Learn ReactJs, React Native from akashmittal.com