B4A Question Sending SMS by PhoneSMS incl. capturing of 'Message Sent' and 'SMS Received' events etc. - DonManfred (first post)    Apr 19, 2021   (4 reactions) Only the default SMS App on your Device is allowed to Send SMS.
I earlier Androids it was possible Share My Creation Send SMS from anywhere using B4A ! [Free source included !] - Justcooldev    May 20, 2024   (21 reactions) Hi there!
I want to show you how to send SMS for free from anywhere (Server, B4J, B4A, B4I, Python, JS, etc.) just by using a POST request, MySQL, PHP, and B4A!
Steps to use:
You need to have a web server (shared or private is fine). To create a free one, use 000webhost.
Once you have access to you B4A Question Send SMS from B4A code - JohnC (first post)    May 18, 2020   (4 reactions) Basically, your app can not send an SMS without user intervention unless:
1) Your app is configured to be the "default" sms app for the device (which will disable the factory SMS app that came with the phone)
2) Or use a third party service like Twilio to send the SMS (but then it will NOT be from B4i Code Snippet [B4x] Send SMS (Text Message), Dial Number, Send Email B4A and B4i - Code Snippets - MrKim    Oct 09, 2021   (11 reactions) ", "Texts Permission")
Return 'abort text
End If
End If
Dim in As Intent
in.Initialize(in.ACTION_VIEW, $"sms:${Num}"$)
If Msg.Length > 0 Then in.PutExtra("sms_body", Msg)
StartActivity(in)
#ELSE If B4i
If B4A Question how to send an SMS (november 2023) - vangogh    Nov 23, 2023 hello
OK, I REALLY read many many threads about this,
but some are old, some says "it cannot be done anymore", some says "yes, it can be done" but when i run them I get an error...
and yes, I can send sms using an intent - it works, not useful to me
So, NOW, how can I send an SMS, (updated) ?
t B4A Question Send sms with SIM card 1 or 2 - morti08 (first post)    Feb 21, 2023 (SmsManager.java:1668)
at android.telephony.SmsManager.sendTextMessageInternal(SmsManager.java:652)
at android.telephony.SmsManager.sendTextMessage(SmsManager.java:489)
at b4a.example.KKK.main.SendSMS(main.java:446)
... 18 more B4A Question Sending SMS - Erel (first post)    Jan 08, 2017   (1 reaction) It is indeed very simple to send sms messages. Too bad you haven't bothered searching the forum: https://www.b4x.com/search?query=send+sms
Sub send_text_SMS(phonenumber As String, message As String) 'string not int
Dim ps As PhoneSms
ps.Send2(PhoneNumber, Message, False, False)
End Sub B4A Question Publishing status: Rejected - JohnC (first post)    May 07, 2021   (1 reaction) The only way google will allow an app to "send" an SMS is if your app is the default sms app on the user's device.
So, google rejected your app because your app can not be used to replace a typical sms messaging app. B4i Question How to send SMS directly from the app? - hatzisn (first post)    Nov 18, 2022   (1 reaction) When a phone visits a web page the web page can send SMS through your phone with an sms hyperlink. You can use something like this to send a pre-composed message through the original iPhone SMS app only. Notice the "&" before the body - it is not an error. Since iOS 12 I think, this is needed but if B4A Question Send SMS - mohsen programmer    Dec 06, 2023 I added this function to my project:
Sub SendMultipartTextMessage(Number As String, Message As String, SubscriptionId As Int)
Dim r As Reflector
r.Target = r.RunStaticMethod("android.telephony.SmsManager", "", Array As Object(SubscriptionId), Array As String("java.lang.int"))
Dim parts A Page: 1   2   3   4   5   6   7   Powered by ColBERT |