Android Question Want to know whether the phone is 'OffHook'

Yngveh58

Member
Licensed User
Longtime User
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
 
Top