Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("jpeg/image");
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[] {"abc@gmail.com"});
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Test Subject");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "go on read the emails");
emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:/"+_path));
startActivity(Intent.createChooser(emailIntent, "Send mail..."));
where _path is the link to the image file
No comments:
Post a Comment