B4A Question Checking internet connection - Sergio Haurat (first post)    Apr 02, 2024 In B4XPage, I found these two ways to detect if there is an Internet connection. The problem, both are only for Android. "PhoneEvents" does not exist in the internal iPhone library or possibly I did not find it Sub Class_Globals Private pEvents As PhoneEvents End Sub Public Sub Initialize p B4A Question Detect when other side answer phone call - Erel (first post)    Oct 04, 2018 Search for PhoneEvents (phone library). B4A Question event: a sms is sent - how to trap the event? - OliverA (first post)    Jan 10, 2024   (2 reactions) Looking at the documentation of PhoneSMS.Send2 https://www.b4x..png Send2 (PhoneNumber As String, Text As String, ReceiveSentNotification As Boolean, ReceiveDeliveredNotification As Boolean) Sends an Sms message. Note that this method actually sends the message (unlike most other methods that crea B4A Question Need example of PhoneSms.Send2 using SmsDelivered and SmsSentStatus - Erel (first post)    Apr 21, 2015   (2 reactions) There is an example of using PhoneEvents here: https://www.b4x.-library-update-v1-34.7829/#content You just need to add the relevant events. There are many examples based on AsyncStreams: https://www.b4x./?query=asyncstreams&page=1&prefix=0 B4A Question strange issue with ConnectivityChanged event not triggering - giggetto71 (first post)    May 27, 2022 Hi, I have just noticed that I was using: PhoneEvent1.Initialize("PhoneEvent") and not Public PhoneId As PhoneId '................' PhoneEvent1.InitializeWithPhoneState("PhoneEvent",PhoneId) what is the difference between the two intialization methods? thanks B4A Question [solved] Online Status - MarkusR (first post)    Apr 09, 2018   (1 reaction) thanks, i will try ConnectivityChanged event :)
Starter
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Public PhoneEvent1 As PhoneEvents
End Sub
Sub Service_Create
'This is the prog B4A Question Phone, speaker, call state, advice sought - Erel (first post)    Apr 16, 2017   (1 reaction) You should use PhoneEvents and call InitializeWithPhoneState.
This will allow you to listen to the PhoneStateChanged event.
However I'm not sure why you need it. Why not make the call with PhoneCalls and set the speaker mode as needed? French Envoi de SMS - imbault (first post)    Jan 19, 2016   (1 reaction) Tu dois utiliser les évenements de PhoneEvents:
Dim pe As PhoneEvents
pe.Initialize("PhoneEvent")
Dim Sms As PhoneSms
Sms.Send2("33xxxxxxxxx","therm",True,True)
.....
Sub PhoneEvent_SmsSentStatus(Success As Boolean, ErrorMessage As String, PhoneNumber As String, Intent As Intent)
If Succes B4A Question [SOLVED] - Responding to an incoming SMS message - rleiman    Jan 25, 2020 Greetings, In my app I'm using PhoneEvents and PhoneStateChanged to listen and respond to incoming phone calls and send a SMS message when the phone rings. Can you tell me how to listen for an incoming SMS message? Does PhoneEvents have something I can use to do that? I already added RECEIVE_SMS a B4A Question CropIWA library and SDK 34 - Erel (first post)    Sep 12, 2024   (1 reaction) Of course. This is an example from PhoneEvents: if (Build.VERSION.SDK_INT >= 33) { BA.applicationContext.registerReceiver(br, fi, exported ? Context.RECEIVER_EXPORTED : Context.RECEIVER_NOT_EXPORTED); } else { BA.applicationContext.registerReceiver(br, fi); Page: 1   2   3   4   5   6   7   Powered by ColBERT |