Answering and dropping a call from code

Erel

B4X founder
Staff member
Licensed User
Longtime User
By simulating a press on the green Talk button or the red End button it is possible to answer a call or drop a call from code.

As you can see in the attached code a timer is used to wait for two seconds before pressing the Talk button.
It is important that this press will only happen after the phone software (cprog.exe) starts to handle the call.
 

Attachments

  • phone.zip
    13.7 KB · Views: 670
Top