lemonisdead Well-Known Member Licensed User Longtime User Oct 23, 2013 #1 Hello, I have a problem. I don't know if it is a bug. I updated the Phone library to the new v2.20. Since I updated, I have some SMS not sent immediately and even not sent. Like if the SMS were stored in the queue. I have checked my code and tried with the simplest : Sub Process_Globals Dim Sms As PhoneSms End Sub Sub Activity_Create(FirstTime As Boolean) Dim x As Int For x=1 To 5 Sms.Send2("THE PHONE NUMBER","TEST "&x,false,false) Next Activity.Finish End Sub Click to expand... Have you got this trouble before ? Any idea to fix it ? Thanks a lot
Hello, I have a problem. I don't know if it is a bug. I updated the Phone library to the new v2.20. Since I updated, I have some SMS not sent immediately and even not sent. Like if the SMS were stored in the queue. I have checked my code and tried with the simplest : Sub Process_Globals Dim Sms As PhoneSms End Sub Sub Activity_Create(FirstTime As Boolean) Dim x As Int For x=1 To 5 Sms.Send2("THE PHONE NUMBER","TEST "&x,false,false) Next Activity.Finish End Sub Click to expand... Have you got this trouble before ? Any idea to fix it ? Thanks a lot
Erel B4X founder Staff member Licensed User Longtime User Oct 24, 2013 #2 Do you get different results if you use Sms.Send? Try to add a short delay between the messages. Both Send and Send2 call the native SmsManager API. The problem is most probably in a lower layer. Upvote 0
Do you get different results if you use Sms.Send? Try to add a short delay between the messages. Both Send and Send2 call the native SmsManager API. The problem is most probably in a lower layer.
ta1dr Member Licensed User Longtime User Oct 24, 2013 #3 Hi Erel I updated version 3.0. Could you write simple code for PhoneSms.Send2 - send sms without notifications. I tried but I didnt regards Upvote 0
Hi Erel I updated version 3.0. Could you write simple code for PhoneSms.Send2 - send sms without notifications. I tried but I didnt regards
lemonisdead Well-Known Member Licensed User Longtime User Oct 24, 2013 #4 Hello Erel, Thanks for your reply. Here is my report: using the old Sms.Send sends the messages like an automatic gun (immediately and chained) using the new Sms.Send2 with true, true sends the messages exactly like Sms.Send but using Sms.Send2 with false, false needs to introduce a small delay (I made tests with 4 seconds between each message) That's surely not a bug but a behaviour of my Acer V370 (Jelly Bean). Thanks for your help (I turned around many hours) Upvote 0
Hello Erel, Thanks for your reply. Here is my report: using the old Sms.Send sends the messages like an automatic gun (immediately and chained) using the new Sms.Send2 with true, true sends the messages exactly like Sms.Send but using Sms.Send2 with false, false needs to introduce a small delay (I made tests with 4 seconds between each message) That's surely not a bug but a behaviour of my Acer V370 (Jelly Bean). Thanks for your help (I turned around many hours)
Erel B4X founder Staff member Licensed User Longtime User Oct 25, 2013 #5 Could you write simple code for PhoneSms.Send2 - send sms without notifications Click to expand... Code: Copy Dim ps As PhoneSms ps.Send2("123456", "message", false, false) Upvote 0
Could you write simple code for PhoneSms.Send2 - send sms without notifications Click to expand... Code: Copy Dim ps As PhoneSms ps.Send2("123456", "message", false, false)
G Gregg Homan Member Licensed User Longtime User Jan 20, 2014 #7 Hi, I am confused as to why ps.Send2(), per code listed below and per Erel's suggested code listed above, will not compile fas if the Send2 method is not available to me for some reason yet ps.Send() works fine; can some explain to me why this is the case and what I am missing?. BTW, my phone library is v2.10. Thanks, Gregg. Code: Copy Dim ps AsPhoneSms ps.Send2("123456", "message", false, false) 'does not compile ps.Send("123456","message") 'works fine Upvote 0
Hi, I am confused as to why ps.Send2(), per code listed below and per Erel's suggested code listed above, will not compile fas if the Send2 method is not available to me for some reason yet ps.Send() works fine; can some explain to me why this is the case and what I am missing?. BTW, my phone library is v2.10. Thanks, Gregg. Code: Copy Dim ps AsPhoneSms ps.Send2("123456", "message", false, false) 'does not compile ps.Send("123456","message") 'works fine
Erel B4X founder Staff member Licensed User Longtime User Jan 20, 2014 #8 Which version of B4A are you using? This method was added in one of the last few updates. Upvote 0
G Gregg Homan Member Licensed User Longtime User Jan 20, 2014 #9 I am running B4A V2.71 ... I will update to the latest version later today and try to running ps.Send2() again. Thanks, Gregg Upvote 0
I am running B4A V2.71 ... I will update to the latest version later today and try to running ps.Send2() again. Thanks, Gregg
G Gregg Homan Member Licensed User Longtime User Jan 21, 2014 #10 Erel, After upgrading from B4A 2.71 to B4A V3.20 which also upgraded phone library from V2.1 to V2.2, ps.Send2() compiled just fine. Thanks, Gregg Upvote 0
Erel, After upgrading from B4A 2.71 to B4A V3.20 which also upgraded phone library from V2.1 to V2.2, ps.Send2() compiled just fine. Thanks, Gregg