Sunday, March 25, 2012

Re: [android-developers] Launching default messaging app for 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
You don't want to do this... Not all phones will have the stock android app with that package name.  Many manufacturers replace stock android apps with their own for things like the camera, sms, etc...

Also, there are a lot of 3rd party apps out there that handle sms/mms... If a user has installed a 3rd party app then they probably don't want to be tied down to the one that came on the device.

but it is showing a chooser for the mms intent to my friend. I am not creating a chooser anywhere
If that is the case then what is most likely happening is that your friend has more than one sms/mms app on the device.  You probably also will notice that the chooser has a checkbox that, if checked, will make their selection the default from then on.  If they check that box and choose which app they want to use to send the sms/mms message then the next time you run your app you will not get a chooser.

This is how standard Android works.  Please don't force people out of the standard.

Intent it = new Intent(Intent.ACTION_VIEW);
it.setType("vnd.android-dir/mms-sms");
I have never created an app dealing with sms/mms messages before, but I don't think this is the way to go...  ACTION_VIEW generally means that you are wanting to display something, not create and/or edit something.  Unless I am misunderstanding what you are trying to accomplish, you should probably use ACTION_SEND.  What does your intent actually look like?


 

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sun, Mar 25, 2012 at 5:02 AM, Daniel Hoeggi <hoeggerl.daniel@gmail.com> wrote:
try this

Intent it = new Intent(Intent.ACTION_VIEW);
it.setType("vnd.android-dir/mms-sms");

On Sun, Mar 25, 2012 at 11:27 AM, Farhan Tariq <farhan.blu@gmail.com> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment