I want to make an app that forcibly ends a call by recognizing a specific word when I am on a call.
So, So there are a few questions.
Can the app detect that it is on the phone and end the call if it is on the phone?
Which API should I use?
Is it possible to activate the voice recognition function while on a call?
When I searched, there was a lot of question to hang up the incoming call. But i want to hanu up on a call.
You can use TelephonyManager#getCallState to detect if phone is in call and use TelecomManager#endCall to end active call.
Related
Is there an easy way to reject a phone call in my application?
I am writing an application and I want it to reject an incoming phone call automatically.
Is there a way to do it without making the application the default call application?
Thank you.
I am writing a new application and I am a newbie so I don't know exactly where to start.
I already have something that detects the phone call and gives me the calling number. It was easy but I don't know how to reject that call.
Help. and thank you.
We are in the process of developing a fluttering mobile application.
Here is what we need:
We receive a phone call in our application.
I pick up the incoming call.
The caller will click on number 5.
I wanted to know which number button was clicked by the caller during the incoming call.
Is there a way to detect which button the caller clicked in flutter, android or ios.
I appreciate any positive response.
There's no API to do that in Android. Possibly you could use the microphone to listen for the DTMF sound (the beep of the key on the line), but its unlikely to pick it up. This just isn't supported. Also in Android you can replace the default dialer, so even if the default one had an API for this, there's no way to assure a replacement does.
I am making an application to call multiple numbers.
In that app
When I call to 1 person and if the call is answered by the user then the loop should be stopped.
But If the call is rejected then the call should be on next number and loop should be continue.
My problem is I can't detect whether the call is rejected or answered. When I had search on net some people says it is not possible to detect the call is answered or rejected.
Is it really not possible to detect the call in android? If it is possible then how can I do that?
There are many phone states that you can read as follow for incoming phones
http://developer.android.com/reference/android/telephony/TelephonyManager.html
Device states ->
if you answer an incoming call, the phone goes into OFF_HOOK. IDLE
implies that the phone is not doing anything. When a call first comes
in, the state is RINGING until you reject the call (send the phone to
idle) or answer the call (send the phone to OFF_HOOK).
(Android: the three phone states)
Edit: But there's no way to listen states of outgoing calls, maybe you can parse logcat logs or something else but it's impossible as far as i know, but you can try http://developer.android.com/reference/android/telephony/TelephonyManager.html because there's a state named ACTION_PHONE_STATE_CHANGED maybe it can help.
Here's the issue link : issue
I want to initiate and manage a call from android, without any interaction with the default dialer. The call should automatically be initiated from the application, and the application should be able to send DTMF tones programatically, and also terminate the call programatically. The dialer should never come to foreground during this process.
I have seen many examples of initiating the call with an intent. Unfortunately, the call will be passed on to the dialer and the dialer will take control from then on.
Here is one such example.
Android: calling number without user init?
Is this possible? If not, it would help if you can point me to the documentation.
I'd like to make a phone call via an AIR application on android. I know you can do this:
navigateToURL(new URLRequest(tel:555555555));
But I want control of the phone call.
The aim is that the app missed calls a selected number. So it calls, waits for it to ring for 1 second and then cuts the call. But with the method above, the app has no control of the phone call.
Thanks
As of now, there is no way that you can 'control' the call flow using AIR apps. The best you can do is invoke the native call application using 'tel' protocol, which you have mentioned.