CopyPastor

Detecting plagiarism made easy.

Score: 1.797324350517657; Reported for: String similarity, Exact paragraph match Open both answers

Possible Plagiarism

Plagiarized on 2017-02-01
by Abdul Ahad

Original Post

Original - Posted on 2010-12-29
by Herr K



            
Present in both answers; Present only in the new answer; Present only in the old answer;

The example Im providing is for the Email Attachments I used. It will give you the idea using Intent.
final Intent ei = new Intent(Intent.ACTION_SEND_MULTIPLE); ei.setType("plain/text"); ei.putExtra(Intent.EXTRA_EMAIL, new String[] {"me@somewhere.nodomain"}); ei.putExtra(Intent.EXTRA_SUBJECT, "That one works");
Add files' uris: ArrayList<Uri> uris = new ArrayList<Uri>();
ei.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris); startActivityForResult(Intent.createChooser(ei, "Sending multiple attachment"), 12345);
That works:
final Intent ei = new Intent(Intent.ACTION_SEND_MULTIPLE); ei.setType("plain/text"); ei.putExtra(Intent.EXTRA_EMAIL, new String[] {"me@somewhere.nodomain"}); ei.putExtra(Intent.EXTRA_SUBJECT, "That one works");
then add files' uris: ArrayList<Uri> uris = new ArrayList<Uri>();
ei.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris); startActivityForResult(Intent.createChooser(ei, "Sending multiple attachment"), 12345);
Hope that helps.

        
Present in both answers; Present only in the new answer; Present only in the old answer;