SmsSentStatus - When is this event fires ?

PhillipMorris

Member
Licensed User
Longtime User
Hello there,
I used the following code trying to capture an SMS being sent by another application.
B4X:
Sub Process_Globals
   Dim PE As PhoneEvents
End Sub

Sub Service_Create
        SmsS.Initialize("PE")
End Sub

Sub Service_Start (StartingIntent As Intent)

End Sub

Sub Service_Destroy

End Sub

Sub PE_SmsDelivered(Ph As String)
   Log("----Delivered")
End Sub

Sub PE_SmsSentStatus(Success As Boolean, ErrorMessage As String, PhoneNumber As String, Intent As Intent)
   Log("----Send")
   If(Success) Then

   Else

   End If
End Sub

After reading here Basic4android - Phone
I saw that
SmsSentStatus - Raised after your application sends an Sms message.
This means that I cannot capture the event if the SMS is sent by another app?
If yes, is there a way to do it ?
Thanks.
 

PhillipMorris

Member
Licensed User
Longtime User
Thanks Erel.
The problem is if I check eg every 1 minute the user can still deliver the SMS and delete it.
I read the this can be done using a Content Observer
Is such an object to your update plans ?

Although my app is in greek, I am posting a screenshot.
It is able to capture incoming, outgoing & not ansered calls and incoming SMS.
The only thing left is outgoing SMS.
xLooger.jpg
 
Upvote 0

PhillipMorris

Member
Licensed User
Longtime User
If (saying the process runs) you mean the service then yes, it surely fits my needs. I am currently using a never ending service (Service.StartForeground).

Thanks again.

PS. Version 2.70 is working better than ever. I am 100% satisfied. Great job Erel !!!!
 
Upvote 0
Top