Page 1 of 1
Send an mms
Posted: 06 Jun 2014 16:39
by thuglife33
Hi everybody,
I want to know if it possible to send an MMS?
I try this but it's doesn't work :
StartActivity
Action: android.intent.action.SEND
Explicit Component: checked
Package Name: com.android.mms
Extras:
putString("address", "mynumberphone");
putString("sms_body", "MMS text");
putUri("android.intent.extra.STREAM", "file:///mnt/sdcard/test.jpg");
I have many errors and it's impossible for me to decrypt it.
Thank you for your reply.
Bye
Re: Send an mms
Posted: 09 Jun 2014 06:17
by BoBo
thuglife33 wrote:
putString("address", "mynumberphone");
putString("sms_body", "MMS text");
putUri("android.intent.extra.STREAM", "file:///mnt/sdcard/test.jpg");
Not sure - but you have to set variables within functions without using quotation marks.
Correct me if I'm wrong.
Code: Select all
address = "blablabla";
putString(address, 4969444555);
putString("ThisIsAString", ThisIsAVariable);
PS: IMHO your thread should have been posted at the "User Help"-section.

Re: Send an mms
Posted: 10 Jun 2014 17:53
by Martin
Hi,
The settings you use look OK to me. Unfortunately Android has not standardized the way to compose MMS so the settings might work on some devices/MMS apps but not on others.
What Android version and messaging app are you using?
@BoBo: The first parameter for the intent-functions like
putString is the key of the extra to set, the keys are strings too so it's correct to use string literals in double quotes.
You could theoretically use following script when you want to use intermediate local variables:
Code: Select all
address_extra_key = "address";
address_extra_value = "1234567";
putString(address_extra_key, address_extra_value);
Regards,
Martin
Re: Send an mms
Posted: 20 Jun 2014 12:20
by thuglife33
Sorry to reply just now but i have been in holiday
I use CM 11 on 4.4.3 and today in 4.4.4 and i use the SMS/MMS app.
I will try with variables.
Thank you for your reply. BYE