Hello
I have a program that starts with a push service and want to know whether the phone is 'OffHook' so that I can wait to run the code until the phone is in 'idle' status.
I hae tried with intent PE_PhoneStateChanged (State As String, IncomingNumber As String, Intent As Intent) but receive no answer when the phone is OffHook. This makes my code run off while talking on the phone and not after the conversation that I want. Can anyone out there help me?
Yngve
'0 - idle, 1 - ringing, 2 - offhook
Sub CurrentPhoneState As Int
Dim jo As JavaObject
jo.InitializeContext
Return jo.RunMethodJO("getSystemService", Array("phone")).RunMethod("getCallState", Null)
End Sub