Questions tagged [callscreeningservice]

CallScreeningService class on Android, used to handle phone calls (incoming and outgoing), as the default caller-id.

Docs: https://developer.android.com/reference/android/telecom/CallScreeningService

This service can be implemented by the default dialer (see TelecomManager#getDefaultDialerPackage()) or a third party app to allow or disallow incoming calls before they are shown to a user. A CallScreeningService can also see outgoing calls for the purpose of providing caller ID services for those calls.

A CallScreeningService performs two functions:

  1. Call blocking/screening - the service can choose which calls will ring on the user's device, and which will be silently sent to voicemail.
  2. Call identification - services which provide call identification functionality can display a user-interface of their choosing which contains identifying information for a call.
10 questions
4
votes
1 answer

In Android, make Caller ID notification visually appear on screen when there is incoming call?

We are working on an app which can recognize the name of the incoming call from the phone number. (Our problem is similar to this one but the solution is different) We have created a CallScreeningService which receives the phone number of the…
2
votes
1 answer

Where does the Android CallScreeningService place if I'm using BroadcastReceiver?

I am using the Broadcast receiver to detect the incoming call and then call my custom incoming Screen as follow: public class CallReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { …
2
votes
1 answer

Android CallScreeningService provide Caller Id

In the Android CallScreeningService docs it states that the CallScreeningService class should be implemented for two purposes as seen below, Call blocking/screening and Call identification (display a user-interface of their choosing which contains…
2
votes
1 answer

How to use CallScreeningService in android to reject the incoming call

I am trying to add CallScreeningService in my android application(targetSdkVersion 29) without making my app a caller app. I follow all the instructions but still not getting it properly OR missing something there. Here is my code: public class…
1
vote
1 answer

Becoming the CallScreeningService on API >= 24

I want to become the CallScreeningService on API >= 24. This should be doable as the function was implemented in 24, however the recommended usage in the docs uses RoleManager (which is implemented in 29). I tried using the methods here and here…
ckorfmann
  • 11
  • 2
1
vote
2 answers

How to implement CallScreeningService for Andoid<=28

**What I have done so far : ** I have implement it for Android SDK 29 RoleManager roleManager = (RoleManager) getSystemService(ROLE_SERVICE); Intent intent = roleManager.createRequestRoleIntent(RoleManager.ROLE_CALL_SCREENING); …
0
votes
0 answers

How to change the incoming calling number to the name of the contact i have with an api call?

I'm pretty new to Kotlin and Android. I've been trying to create a Caller ID app. I've succeeded to make my Api call with the CallScreeningService and to pop a notification to the user with the actual name of the calling person. The next step for me…
0
votes
0 answers

How can I set a callerId in telecom CallScreeningService

The docs state that this service performs call identification to display a user-interface of their choosing which contains identifying information for a call. but i cannot find any method to do this. I set up a call screening service overriding…
0
votes
0 answers

how to get Callback when call ends or decline using CallScreenService in android?

I am using CallScreenService Api to detect call and show window on incoming and outgoing calls, but I want to close my overlay dialog window when calls ends or decline. Here is my code for CallScreenService.class class AppService :…
0
votes
0 answers

What is exactly "DIRECTION_UNKNOWN" for Call.Details class?

Background I'm investigating how CallScreeningService works (sample repository here, easier one here, if anyone wishes to check out). The problem I've noticed that for callDirection there is incoming, outgoing, and "DIRECTION_UNKNOWN" : Indicates…
android developer
  • 114,585
  • 152
  • 739
  • 1,270