I'm new and first I'm sorry for my english.
Second very compliment for this forum, It's the best android forum on the web!
I'm italian and I hope that you can resolve my strange and maybe stupid question.
In my application I try to send an MMS with an image on my device (an HTC Tattoo) sdk 1.6.
Now if I write a normal code Intent.ACTION_SEND, set of Intent.EXTRA_STREAM etc, I have a strange behavior...
The command:
Using java Syntax Highlighting
- startActivity(Intent.createChooser(sendIntent, "Choose destination:"));
Parsed in 0.015 seconds, using GeSHi 1.0.8.4
Show a menu choice with inside all application (Facebook, GoogleMail, Flirck etc.) minus "Messages" when I set correctly the Type MIME like "image/jpeg" or "image/*".
If I set MIME "*/*" magically "Messages" appears on the menu of choice but If I select it doesn't work

it understand that is a sms message and not an mms... Stupid phone!

I see on the log of my phone that a normal send mms activity (on start send mms from a photo gallery) produce this ouput:
I/ActivityManager( 84):
Starting activity: Intent { act=android.intent.action.SEND_MSG typ=image/png flg=0x3000000 cmp=com.android.mms/.ui.ComposeMessageActiv
Instead my application on starting activity for send mms produce this output:
Starting activity: Intent { act=android.intent.action.SEND typ=image/jpeg cmp=com.android.mms/.ui.ComposeMessageActivity (has extras)
When I tried to set intent Action:
Intent sendIntent = new Intent("android.intent.action.SEND_MSG");
all works fine! Doesn't appear the menu of choise but immediatly the system start the mms client with my image inside...
My question is: This custom
Using java Syntax Highlighting
- String action = "android.intent.action.SEND_MSG"
Parsed in 0.010 seconds, using GeSHi 1.0.8.4
will work only on my htc tattoo?
I don't find this variabe on sdk... There are ACTION_SEND, ACTION_SENDTO and ACTION_MULTIPLE that are:
android.intent.action.SEND, android.intent.action.SENDTO, android.intent.action.SEND_MULTIPLE.
I don't see this variable SEND_MSG... I can't find it anywhere.
The com.android.mms.ui.ComposeMessageActivity is in the android so but I don't know if in other phone the normal Intent.SEND (and especially "android.intent.action.SEND_MSG" custom string) works...
What is wrong with my code on my htc Tattoo?
I hope I explained the problem clearly.
Thanks in advance for any response.
Giselda