Dear friends, please,
I am trying to read PhoneStateChanged with button or with timer.
The trouble is, that if I listen PhoneStateChanged in my CHECKMYPHONE service, I can get result.
But when the Phone is ringing, the app is going to background and then I am trying to chceck the PhoneStateChanged in STARTER service.
But I can only wait to killcall = I am reading Phone state only when I Kill the call, because Phone state is changed.
But I need to know which state of phone (ringing. etc) is each 5 second.
It is possible to run phonestatechanged via timer,please?
Thank you
p4ppc
I am trying to read PhoneStateChanged with button or with timer.
The trouble is, that if I listen PhoneStateChanged in my CHECKMYPHONE service, I can get result.
But when the Phone is ringing, the app is going to background and then I am trying to chceck the PhoneStateChanged in STARTER service.
But I can only wait to killcall = I am reading Phone state only when I Kill the call, because Phone state is changed.
But I need to know which state of phone (ringing. etc) is each 5 second.
It is possible to run phonestatechanged via timer,please?
B4X:
Sub PE_PhoneStateChanged (State As String, IncomingNumber As String, Intent As Intent)
Log("PhoneStateChanged, State = " & State & ", IncomingNumber = " & IncomingNumber)
Log(Intent.ExtrasToString)
End Sub
Thank you
p4ppc
Last edited: