01.
public
void
onClick(View View) {
02.
String strMessage = sMes.getText().toString();
03.
04.
Intent intent =
new
Intent(Intent.ACTION_SEND);
05.
intent.setType(
"text/plain"
);
06.
07.
intent.putExtra(Intent.EXTRA_TEXT,strMessage);
08.
09.
startActivity(Intent.createChooser(intent,
"แชร์"
));