Questions tagged [incallservice]

5 questions
3
votes
0 answers

Detect incoming call when call is in ringing state InCallService android

I am using InCallService for making calls in my app. Its working fine for incoming and outgoing calls. onCallAdded() is called when I receive or make a call. CallService: public class CallService extends InCallService { Context context; …
Saify
  • 469
  • 1
  • 5
  • 20
3
votes
1 answer

How to get the phone number and SIM card slot for the current device, on the callback of onCallAdded?

Background I'm working on an app that implements InCallService, so it can handle phone calls The problem On devices with multi-SIM, I need to show information of which SIM and associated phone number is used (of the current device). Thing is, I…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
0
votes
0 answers

How to reject incoming call in android 10 and above? all given solutions are not working as current security enhancement

``there are several answer available for rejecting incoming call in android but they all are not working in android 10 and above. is there any solution we can do it programmatically. Thank you in Advancetext I have tried all the solution available…
0
votes
0 answers

Return null on binding InCallService

I develop a default phone app using the InCallService API. I want to show my UI for incoming calls, but in case of outgoing calls i want to show the default system phone UI (e.g when the user initiates a call from his contacts). According the…
Ilan
  • 41
  • 7