I know many developers ask the same question about how to accept incoming calls on button click.
I'm working on an application like this. https://play.google.com/store/apps/details?id=com.colorphone.smooth.dialer&hl=en
I searched a lot and successfully implement the feature where application can detect an incoming call ( by following this one How to detect incoming calls, in an Android device?) and opens up an activity where user has two choice, whether to accept the incoming call or reject it. The problem the i can't accept/reject the incoming call programmatically. I search a lot but couldn't find the specific solution. If anybody could help me on how could i accept the incoming call programmatically that will be great.