Questions tagged [incoming-call]

Questions on scenarios related to incoming phone calls

Questions on scenarios related to incoming phone calls, like incoming call location, incoming call details, incoming call recording, etc.

140 questions
160
votes
13 answers

How to detect incoming calls, in an Android device?

I'm trying to make an app like, when a call comes to the phone I want to detect the number. Below is what I tried, but it's not detecting incoming calls. I want to run my MainActivity in background, how can I do that? I had given the permission in…
Jesbin MJ
  • 3,219
  • 7
  • 23
  • 28
94
votes
10 answers

How can incoming calls be answered programmatically in Android 5.0 (Lollipop)?

As I am trying to create a custom screen for incoming calls I am trying to programatically answer an incoming call. I am using the following code but it is not working in Android 5.0. // Simulate a press of the headset button to pick up the…
maveroid
  • 1,840
  • 1
  • 20
  • 20
75
votes
5 answers

How to block calls in android

I want to block calls from few numbers, for that I want to write a app of my own. So what are the APIs which I should be using? Basically I want to get notified when a call comes, i want to compare numbers if it is what i want to block, i want to…
Anurag Uniyal
  • 85,954
  • 40
  • 175
  • 219
66
votes
6 answers

Stopping & starting music on incoming calls

I have implemented an activity that plays media from a URL in Android. In order to add pause functionality when a call is incoming I created a receiver that sets a variable when the call is coming. The activity reads this variable in onPause(),…
user669231
  • 1,371
  • 3
  • 18
  • 27
15
votes
6 answers

Rejecting Incoming call in android

I want to reject incoming in android, I have seen so many code from these links. Android: Taking complete control of phone(kiosk mode), is it possible? How? How to Reject a call programatically in…
Zubair
  • 304
  • 1
  • 5
  • 19
14
votes
3 answers

Can't answer incoming call in android marshmallow 6.0

I'm creating a calling app. Here's Auto answer which works on android 4.0 and 5.0; whereas when i have an incoming call answer call button works but it doesn't work on android 6.0. I tested answer of this post but it doesn't work too : Answer…
13
votes
1 answer

Detecting target SimCard of incoming call in Multi-Sim devices

I've read a lot of posts and tried many solutions, but the common point of all posts was that they were all outdated and at least I couldn't find a solution that would work on newer versions of Android. Post 1,…
Alireza Noorali
  • 3,129
  • 2
  • 33
  • 80
10
votes
1 answer

Auto answer the incoming call programmatically?

I have the code for getting the number of the incoming call to a android phone. But I want to automatically answer the call when the incoming call is from a particular number. I found this code on the internet: public class ServiceReceiver extends…
android
  • 125
  • 1
  • 1
  • 9
8
votes
1 answer

BLE device keep connect with iPhone when application terminate

I got a problem with BLE on iOS. My case as below: I'm developing application connect to device BLE 4.0. My problem is incoming call function. The scenario of this function is after connected between device BLE and application, when phone is…
Leo
  • 81
  • 1
  • 2
8
votes
2 answers

Simulating incoming call or sms in Android Studio

Its possible to spoof calls and messages using DDMS in Eclipse IDE but how can I do it in Android Studio? There must be a way.
Saad Amin
  • 81
  • 1
  • 1
  • 4
8
votes
1 answer

How does a Android "OS" detect a incoming call

I'd like to know: how the android OS detect a incoming call(number) and displays the contact name and gives us a option to attend the call. What happens inside the OS when the "END CALL BUTTON" is tapped. When I searched regarding this I am…
7
votes
1 answer

Move the Default Incoming Calling Screen to Background on TelephonyManager.CALL_STATE_RINGING in Android

I am working on an application in which I have to override the INCOMING CALL SCREEN. When device receives a call, I have to show a popup of my application. I have done a detailed research about this task. CALL POPOUT is an application which is using…
6
votes
1 answer

How to reject incoming call programatically in android?

Possible Duplicate: How to block calls in android Can any one tell me how to reject incoming call programatically in android ?
Srinivas
  • 1,688
  • 8
  • 30
  • 51
6
votes
1 answer

Mi Band 1S vibration on incoming call handling on iOS

SO. Initial data: Device Xiaomi Mi Band 1 or 1S Device paired with iPhone Xiaomi iOS app has option "Vibrate on incoming calls" How they implement it? It continue works if you reboot device or force quit an app. It is unusual for default BLE…
alexchernyy
  • 1,216
  • 10
  • 12
5
votes
1 answer

Reject Incoming Call in Flutter

How to detect and reject incoming calls in flutter even if the app is in background. Any help will be appreciated.
1
2 3
9 10