Attaching Files In Email In Android Java

Opening the email application from java can be done like the following: final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND_MULTIPLE); emailIntent.setType(“plain/text”); emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,new String[]{“email”}); emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, “subject”); emailIntent.putExtra(android.content.Intent.EXTRA_TEXT,”Extra”); //has to be an ArrayList ArrayList<Uri> uris = new ArrayList<Uri>(); //convert from paths to Android friendly Parcelable Uri’s for (String file : filePaths) { File fileIn = new File(file); Uri u

Read More