Hello mangojack,
Thanks for your reply. But i got this below error when i tried to run your app. Where do i find MyFirstLib library...?
Parsing code. Error
Error parsing program.
Error description: Unknown type: myfirstlib
Are you missing a library reference?
Occurred on line: 74
Dim MFL As MyFirstLib
The error is cleared. It's compliling now. I turned Service state ... ON and it shows HangUp service started ...
But nothing is happening during incoming call. I mean app cant recieve the call
Sub PE_PhoneStateChanged (State As String, IncomingNumber As String, Intent As Intent)
Select State
'Case "IDLE" ' Idle state.
Case "RINGING" ' Ringing state.
' only auto answer this number ..... rem to answer all calls
'If IncomingNumber = "555123456789" Then
AC.AnswerPhone
'End If
End Select
End Sub
I am repeating this question.
Is it possible to answer a phone call [incoming call] using PhoneStateChanged event. Any examples or threads related to this topic
The above example given by mangojack using Answer Call Library is not working in my HTC One V device. Any other solution from anyone here....?
Try logging the state and incoming number in the PE_PhoneStateChanged sub, then call the device and see what it logs in the IDE.
B4X:
Sub PE_PhoneStateChanged (State As String, IncomingNumber As String, Intent As Intent)
log("State = " & State)
log("IncomingNumber = " & IncomingNumber)
End Sub