protected void shareQiYouUp() {
String[] TO = {"whatever@mail.com"};
String[] CC = {"someoneelse@mail.com"};
Intent emailIntent = new Intent(Intent.ACTION_SEND);
emailIntent.setData(Uri.parse("mailto:"));
emailIntent.setType("text/plain");
emailIntent.putExtra(Intent.EXTRA_EMAIL, TO);
emailIntent.putExtra(Intent.EXTRA_CC, CC);
emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Subject");
emailIntent.putExtra(Intent.EXTRA_TEXT, "Body of the message");
try {
startActivity(Intent.createChooser(emailIntent, "Send mail"));
} catch (android.content.ActivityNotFoundException ex) {
Toast.makeText(MainActivity.this, "Error in sharing", Toast.LENGTH_SHORT).show();
}
}