Messaging Activity also pops up when ACTION.SEND intent

All your problems with Audio, Video and Images.

Messaging Activity also pops up when ACTION.SEND intent

Postby android_programmer » Mon Sep 27, 2010 7:39 pm

I wrote an email application in Android , that uses Action_SEND intent. When I call startActivity(i) ; where i is intent, along with email Application , messaging application is also popping up. But when I wrote an application for email why should messaging application also should pop up.
can I be explained clearly regarding this concept.

Intent sendIntent = new Intent(Intent.ACTION_SEND);
String[] mailto = recipients;
sendIntent.putExtra(Intent.EXTRA_EMAIL, mailto);
String[] mailCc = recipientsToBeCopied;
sendIntent.putExtra(Intent.EXTRA_CC, mailCc);
String[] mailBcc = recipientsToBeBlindCopied;
sendIntent.putExtra(Intent.EXTRA_BCC, mailBcc);
String subject = strSubject;
sendIntent.putExtra(Intent.EXTRA_SUBJECT, subject);
String body = strBody;
sendIntent.putExtra(Intent.EXTRA_TEXT, body);
startActivity(Intent.createChooser(sendIntent, "send mail.."));

can any one tell me reason for using createChooser of intent and also reason for this application popping up messaging activity.

Thanks N Regards
Junior Developer
Junior Developer
Posts: 12
Joined: Sun Aug 08, 2010 2:50 pm


Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 2 guests