API which detects incoming call in android - android

which api detects first incoming call in android phone can anyone tell me or the first action comes into play by which api and where it happens when incoming call comes

Learn about Broadcast and BroadcastReceiver (Abstract Class) to get broadcasts about incoming calls, sms, mms, wifi etc.
http://developer.android.com/reference/android/content/BroadcastReceiver.html

Related

In rooted device detect if an outgoing call has been answered

I am developing a system app in which I need to capture the outgoing call answer/reject events. Could you advice on how to achieve this in a rooted device please ? Problem with TelephonyManager class is that there is no notification of when outgoing call has answered.
This is crucial to my app. My target device is android 4.4(kitkat).
Some thing like this app.
https://play.google.com/store/apps/details?id=io.github.yutouji0917.callvibrator.ad
To do this you must register broadcast receiver for listening phone events like incoming, outgoing call, hang up events and don't forget to define broadcast in manifest file.
Here i am attaching a link that will help you to implement your code
http://karanbalkar.com/2014/02/detect-incoming-call-and-call-hangup-event-in-android/
http://www.codeproject.com/Articles/548416/Detecting-incoming-and-outgoing-phone-calls-on-And

Is it possible to intercept phone calls in an android application?

I am researching whether it is possible to receive an incoming mobile phone call and intercept the call within an application so that before we accept the call we can start to play some music in the background such that the caller listen to the music as well.
Of course you can ! You will have to create service that listens to incoming call intent and then do what you like.
See this tutorial for more information:
How To Handle Incoming Calls in Android

How to receive the numbers dialled by a caller during a call in Android using Telephony Manager

I want to receive the numbers dialled by a caller during a call in Android using Telephony Manager. It's basically like costumer care where they ask us to dial a number and respond accordingly
As far as I know, it is NOT Possible.
Basically when you make a call, you are connected to a Service provider and in turn to the receiver. Our actions (key press) can be monitored by the service provider, but not for the receiver. Because it is the service provider who decides which signals should be reached at receiver. If such a signal(data) is provided, then the research is feasible.

SMS BroadcastReceiver for multiple SMS in android

I am new in Android development and I'm doing an SMS app that receives multiple SMSes i.e notification SMS that's captured into the ListView and another SMS that contains the location of the sender for use in displaying the sender's location on google map.I've managed the first part,how do I listen again for the second SMS using the BroadcastReceiver...In other words how to listen for an incoming SMS when multiple different SMSes are expected.
If you impleted correctly the BroadCastReceiver you shouldnt worry about the second time, it would be fired automatically. You should post your code to have more information.
Welcome to Android development!
In order to receive incoming SMS's, you need to use the BroadcastReceiver mechanism that listens to incoming SMS's intent.
But, If you want to be sure that the message is going throw your app before it gets into the System's database, you have to give your BroadcastReceiver's Class a high priority on the manifest.
Good Luck.

State of telephone in Android

I'm looking for a sort of trigger in Android, that would let me perform a task whenever a sound is played, so for incoming calls, SMS and e-mail notifications. I did find something like this, but it's only for when the phone is called:
http://developer.android.com/reference/android/telephony/TelephonyManager.html
What I want to achieve with this is sending a bluetooth signal to a bracelet, so it starts vibrating. This would be suited for the hearing impeared or people that work/live in a loud environment who don't carry their phone attached to their bodies.
Calls, SMSes and email are handled by different apps and they have different notifications. Besides calls, you can also get notifications for SMS but not for emails.
SMS broadcast is a private API, meaning that it is not officially supported and can change without notice: Android - SMS Broadcast receiver

Categories

Resources