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
Send an mms
Moderator: Martin
Re: Send an mms
Not sure - but you have to set variables within functions without using quotation marks.thuglife33 wrote: putString("address", "mynumberphone");
putString("sms_body", "MMS text");
putUri("android.intent.extra.STREAM", "file:///mnt/sdcard/test.jpg");
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
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:
Regards,
Martin
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);
Martin
-
- Posts: 2
- Joined: 06 Jun 2014 16:31
Re: Send an mms
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

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