android - sending an e-mail with multiple attachments -


I am trying to send an e-mail with many attachments.

  Intent Email Intent = New Intent (Intent.ACTION_SEND_MULTIPLE); EmailIntent.putExtra (Intent.EXTRA_EMAIL, new string [] {"email1@email.com", "email2@email.com"}); EmailIntent.putExtra (Intent.EXTRA_SUBJECT, "Subject"); EmailIntent.putExtra (Intent.EXTRA_TEXT, "text"); Email id Inputpervalale Extra (Intent.EXTRA_STREAM, URI); EmailIntent.setType ("text / plain"); StartActivity (Intent.createChooser (emailIntent, "Send Email Using:"));   

I send an email using Gmail, but when I send an e-mail using an e-mail client on Nexus One, this attachment does not attach. It has all the lessons, topics, etc. ... but there is no attachment only. If I have an e-mail account then it is an Exchange account, if it counts ...

Fix it for your work Last Intent Emailent = New Intent (android.content.Intent.ACTION_SEND_MULTIPLE); EmailIntent.setType ("plain / text"); ArrayList & LT; Uri & gt; URI = new arreelist & lt; Uri & gt; (); String [] filePaths = new string [] {image1 path, image2 path}; (String file: file path) = file file = new file (file); Uri U = Uri.framefile (file in); Uris.add (u); } If ((App_preferences.getString ("email", "") == faucet {app_preferences.getString ("email", "") .equals (""))} {emailIntent.putExtra (Intent.EXTRA_EMAIL, new String [] {app_preferences.getString ("email", "")}); } EmailIntent.putExtra (Intent.EXTRA_SUBJECT, "topic name"); EmailIntent.putExtra (Intent.EXTRA_TEXT, "Please find attachments."); Email id Inputpervalale Extra (Intent.EXTRA_STREAM, URI); Initial activity (Intent.createChooser (email intent, "email:"));

Comments