imgsimonebiliato Well-Known Member Licensed User Longtime User Aug 18, 2014 #1 Hi I open the package "com.android.mms" with an Intent, but I need to open it, with also a recipient and a body message. Is there a way?
Hi I open the package "com.android.mms" with an Intent, but I need to open it, with also a recipient and a body message. Is there a way?
Erel B4X founder Staff member Licensed User Longtime User Aug 18, 2014 #2 If you are trying to send a regular SMS message then you should use PhoneSms. See the code here for mms: https://code.google.com/p/android/issues/detail?id=6151 Upvote 0
If you are trying to send a regular SMS message then you should use PhoneSms. See the code here for mms: https://code.google.com/p/android/issues/detail?id=6151
imgsimonebiliato Well-Known Member Licensed User Longtime User Aug 18, 2014 #3 Need more help please Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 18, 2014 #4 What are you trying to do? Upvote 0
imgsimonebiliato Well-Known Member Licensed User Longtime User Aug 19, 2014 #5 Erel said: What are you trying to do? Click to expand... I'm trying to open the message system application with already a new sms to the number XXX Upvote 0
Erel said: What are you trying to do? Click to expand... I'm trying to open the message system application with already a new sms to the number XXX
Erel B4X founder Staff member Licensed User Longtime User Aug 19, 2014 #6 Don't you want to send the message directly (very simple with PhoneSms)? Upvote 0
imgsimonebiliato Well-Known Member Licensed User Longtime User Aug 20, 2014 #7 Erel said: Don't you want to send the message directly (very simple with PhoneSms)? Click to expand... No because I need also to write different sms text Upvote 0
Erel said: Don't you want to send the message directly (very simple with PhoneSms)? Click to expand... No because I need also to write different sms text
Erel B4X founder Staff member Licensed User Longtime User Aug 20, 2014 #8 With PhoneSms you can write any text you like. Upvote 0
imgsimonebiliato Well-Known Member Licensed User Longtime User Aug 23, 2014 #9 Erel said: With PhoneSms you can write any text you like. Click to expand... I can't find a valid example.. But I need to set the recipient, not only the sms text. Please, can you help? Last edited: Aug 23, 2014 Upvote 0
Erel said: With PhoneSms you can write any text you like. Click to expand... I can't find a valid example.. But I need to set the recipient, not only the sms text. Please, can you help?
Erel B4X founder Staff member Licensed User Longtime User Aug 24, 2014 #10 Code: Copy Dim ps As PhoneSms ps.Send("123456778", "this is the text") Upvote 0
imgsimonebiliato Well-Known Member Licensed User Longtime User Aug 26, 2014 #11 Erel said: Code: Copy Dim ps As PhoneSms ps.Send("123456778", "this is the text") Click to expand... Ok we're almost there. But now, I need to open the SMS application with already set the number 123456789 Upvote 0
Erel said: Code: Copy Dim ps As PhoneSms ps.Send("123456778", "this is the text") Click to expand... Ok we're almost there. But now, I need to open the SMS application with already set the number 123456789
Erel B4X founder Staff member Licensed User Longtime User Aug 26, 2014 #12 Code: Copy Dim i As Intent i.Initialize(i.ACTION_VIEW, "") i.SetType("vnd.android-dir/mms-sms") i.PutExtra("sms_body", "body") i.PutExtra("address", "123456768") StartActivity(i) Upvote 0
Code: Copy Dim i As Intent i.Initialize(i.ACTION_VIEW, "") i.SetType("vnd.android-dir/mms-sms") i.PutExtra("sms_body", "body") i.PutExtra("address", "123456768") StartActivity(i)
imgsimonebiliato Well-Known Member Licensed User Longtime User Aug 26, 2014 #13 Erel said: Code: Copy Dim i As Intent i.Initialize(i.ACTION_VIEW, "") i.SetType("vnd.android-dir/mms-sms") i.PutExtra("sms_body", "body") i.PutExtra("address", "123456768") StartActivity(i) Click to expand... Yes! Perfect! Many thanks! Upvote 0
Erel said: Code: Copy Dim i As Intent i.Initialize(i.ACTION_VIEW, "") i.SetType("vnd.android-dir/mms-sms") i.PutExtra("sms_body", "body") i.PutExtra("address", "123456768") StartActivity(i) Click to expand... Yes! Perfect! Many thanks!