How do you tell the difference between an incoming and outgoing call?

NeoTechni

Well-Known Member
Licensed User
Longtime User
I'm using
PE_PhoneStateChanged(State As String, IncomingNumber As String, Intent As Intent)
 

SCIS

Active Member
Licensed User
Longtime User
Copied/pasted from the wiki:
PhoneStateChanged - The phone state has changed.
State - One of the three values: IDLE, OFFHOOK, RINGING. OFFHOOK means that there is a call or that the phone is dialing.
IncomingCall - Available when the State value is RINGING.

URL to the wiki where it explains the phone part:
Basic4android - Phone

Just CTRL+F to find the PhoneStateChanged.
 
Upvote 0

NeoTechni

Well-Known Member
Licensed User
Longtime User
Except that doesn't tell me the difference between the 2 during the non-ringing states.

I can't record the value as it will get out of sync with multiple calls
 
Upvote 0
Top