The chooser is a system function, and not one that you can create. It appears automatically if application A sends out an intent and gets a match from more than one destination application [B,C,D...] . In the chooser, the user can select a default application X to use for the intent that application A sent out. After that, X is launched every time that * intent* is sent out, regardless of the application that sent it.
For example, if my application sends an intent with the action ACTION_VIEW and the MIME type image/jpeg, most users will get a chooser, because applications that can view JPEG images are quite common. If the user chooses some graphics application X as the default, then any time *any* application sends an intent with ACTION_VIEW and MIME type image/jpeg, application X will launch: *IMPORTANT EXCEPTION:* An application can provide additional levels of filtering that narrow down the applications that will respond to an intent. To learn more, read the *Intents and Intent Filtering* guide in the Developers Guide. If you want a specific application to handle your intent, you have to be as specific as possible with the intent data. The most narrow specification you can make is the component name and class of the target activity or service. On the whole, though, you should avoid being too specific. The intent framework allows the user to pick and choose applications for various tasks; be too specific, and you're taking functionality away from the user. If you send an intent, be sure to specify an action and a MIME type, if nothing else. If you handle incoming intents, be sure to set up your intent filters correctly and test them. On Sunday, March 25, 2012 2:27:46 AM UTC-7, Farhan wrote: > > Hi all, > I am working on an application that allows user to create mms messages > according to a template, for android 2.2. I am done with most of the work, > but I am stuck with one thing. I want to be able to launch the android's > default messaging application to send the mms. I tried to set package of > the intent as "com.android.mms" and it seems to work fine on my phone, as > well as emulator, but it is showing a chooser for the mms intent to my > friend. I am not creating a chooser anywhere, still. Can anyone help me get > through this. A little guidance is I think all I need. Thank you > > Regards > > Farhan > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

