How to divert phone calls in android to another phone number - android

I want to write an application which be able to divert calls to another number, I know it can be done on phones by it self, but I want to only direct specific number to another number.
is there any way to do this?

Related

how to know the number clicked on the numeric keypad of the caller during a phone call (flutter, android or ios)

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.

Hiding the phone number when calling from iOS or Android App

This might not be an appropriate question for StackOverFlow. If not please recommend me where I can post this question.
We are in the process of developing an application where the customer can call the vendor and the vendor can call the customer. But for privacy reasons we don't want to expose the phone numbers of the customers to the vendors and vice versa.
What are some recommended solutions for this problem?
It's not possible, the URL Scheme requires a number and it is show on the screen while calling.
as you can see here
Maybe, you may have to create something more complex like Skype.
Unfortunately that is not possible as of now. You could hide the phone number by replacing each number as an asterisk (*) in your app.
However, when vendor or customer taps on the phone button to call, then phone number is passed to the device Operating System to call, then this number will show up in the calling list.
In addition to that, your app most likely will not be allowed by Apple reviewers, because user needs to see what phone number he is calling. He might be punished if he keeps calling this secret/scripted phone number which might be 911. That is another serious issue may rise.
My recommendation is to have chatting system, or implementing VoIP(voice over IP) like whatsup or viber style calling within the app. It requires exhausted implementation.

How to receive numbers pressed on a keypad of calling party while ringing in Android?

I am working on an android app and i wanted to know if it is possible to receive the numbers or DTMF tone or any such related data at the called party's phone, that the calling party is typing on his/her phone while the phone of the called party is ringing.
Just to make the question more clearer, consider this scenario with two people A and B :
Caller A is calling B.
B's phone is ringing.
A types a sequence or a single digit on his phone while it is still ringing.
Those digits are received at B's phone.
Based on what digit / what sequence it is, an action will be triggered at B's phone (Through my app).
I just wanted to know if the above scenario or anything equivalent or remotely like the same is possible.
Thank you
No. First, we have no access to the in-call audio stream, except perhaps if the phone is in speakerphone mode. Second, I am not aware of any Android device that plays the audio of the incoming call over top of the ringing where the user has not picked up the phone.

Reading outgoing emergency numbers

I have a fantastic idea for an Android app but I would need to be able to detect when an emergency call is made from the handset. I only need to be able to read the number, I won't be changing it at all.
The documentation for NEW_OUTGOING_NUMBER says:
Emergency calls cannot be intercepted using this mechanism, and other
calls cannot be modified to call emergency numbers using this
mechanism.
Obviously I don't want to find out if I can read an emergency number by dialing it. I was hoping someone here might be able to tell me whether or not I can grab EXTRA_PHONE_NUMBER if the number would be, for example 999.

Android: Firing an activity on a call only for international phone numbers

I want to launch an activity only when a user calls specific number (e.g. phone number of a specific country)
From what i read, i understand i can create an intent-filter for android.intent.action.CALL,
but i wonder if i can invoke the application just for certain numbers (just for numbers that belongs to that country, for example). Ideally i will like the user to be able to define this filter himself. so it will not be hard coded in the manifest file.
Is this possible?
Take a look here
You'll need to get the phone number once you receive an incoming call event.
However, please note that unless you override the incoming call intent (which means
you need yo write your own calling app) your new activity will stay in the background until the phone call app is closed (i.e, until the user reject or end the call).

Categories

Resources