Try this
btnShare.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View view) {
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
String sharingText = "I want to share this text.";
sharingIntent.putExtra(Intent.EXTRA_TEXT,sharingText);
startActivity(Intent.createChooser(sharingIntent,"Share using"));
}
});