phone-call

Is there a new, official API for rejecting calls on Android?

限于喜欢 提交于 2021-02-17 20:36:14
问题 Background For a very long time, there wasn't an official API for blocking calls on Android. What developers did for CallerId and call-blocking apps, is to use some reflection tricks, as shown here. The problem It seems no blocking app works on Android P DP3 (tested on Pixel 2). Even very popular apps such as TrueCaller fail to block calls. I believe this is because it might be replaced with an official API, as there are some articles that talk about built in call blocking capability for

How to make phone call in React Native?

倾然丶 夕夏残阳落幕 提交于 2021-02-17 08:25:00
问题 I want to call to the value of Text component when I press it. But, actually, I haven't enough knowledge for that. Can you, please, tell me, which library or component should I use? 回答1: If you look at the source code for react-native-phone-call , it's ultimately just a wrapper for: import {Linking} from 'react-native' Linking.openURL(`tel:${phoneNumber}`) 回答2: You can use this method to call numbers in android and ios, place this method in a utils file and use the method wherever you want.

Get phone call information on android

别来无恙 提交于 2020-05-16 06:33:07
问题 I've been trying to figure out how to develop a requirement of one of my projects. The requirement is to get information about phone calls: Timestamp and phone number of ingoing/outgoing calls Timestamp and reason of finished call (call ended by user, network unreachable...) What I found until now is not so much. This next link http://developer.android.com/reference/android/telephony/PhoneStateListener.html Talks about creating a listener to get incoming calls phone number. Anyone can help me

how to configure call url in twilio api

南笙酒味 提交于 2020-01-23 17:29:45
问题 i am creating a program for recieving the call, but every time i am calling via phone or browser it says a auto generated message : https://demo.twilio.com/welcome/voice/ i need to answer the call via phone and browser both, and which url i have to giv in twiml app for voice ? outgoing call or incoming?? if i am merging them no effect?? Twilio.Device.incoming(function (conn) { $("#log").text("Incoming connection from " + conn.parameters.From); // accept the incoming connection and start two

Generate voice call using twilio

寵の児 提交于 2020-01-23 04:01:06
问题 I have developed a small application using twilio api to make call to any phone number from my twilio number. After dialing call is establishing and a specific audio clip is playing in mobile end. But I am not getting any real voice in any side of the call. Please help me or give me some information regarding how can i get voice in voice call using twilio api. Thanks, Tanim Code snippet: $client = new Services_Twilio($AccountSid, $AuthToken); $call = $client->account->calls->create("My Twilio

How to hide phone number when calling

荒凉一梦 提交于 2020-01-17 12:42:54
问题 My app allows the user to make a phone call but I need to hide the number I'm calling to because it has a secret code within it. Is there any way to achieve this? When I say "hide the number", I mean the phone number that appears in the the confirmation UIAlertView before calling and, if possible, in navigation bar when the call is in process. 回答1: Most definitely not. The phone number that gets passed to the OS when making the call cannot be modified or hidden from the user. (What if your

Dismissing a custom incoming call screen on Android when the call is answered or the phone stops ringing

耗尽温柔 提交于 2020-01-16 02:55:09
问题 I want to have a custom incoming call screen that shows up when there is an incoming call, and get dismissed if the call is answered or the phone stops ringing. I've searched several posts on Stackoverflow to show me how can I implement that, and so far I am nearly there and after checking pros and cons of each approach in terms of how fast the screen gets shown, I've settled on the WindowManager approach. Whenever I call wm.removeView(ly) I get the stack below 07-08 20:36:41.002 27547-27547

How to handle incoming call events in Android

孤人 提交于 2020-01-14 04:23:10
问题 Does anybody know if there is any event to handle incoming calls? I'm developing an app that streams audio from the microphone and I would like to have a listener that stops the recording, etc when there is an incoming call, and that restarts the process when the telephone call is over. 回答1: You can create a BroadcastReceiver and listen for the TelephonyManager#ACTION_PHONE_STATE_CHANGED action. 来源: https://stackoverflow.com/questions/3137582/how-to-handle-incoming-call-events-in-android

Detect outgoing calls, issue with a real device

末鹿安然 提交于 2020-01-11 09:58:05
问题 I have a strange problem. To detect outgoing calls I have registered a broadcast receiver for android.intent.action.PHONE_STATE . When the state becomes OFFHOOK, then a conversation is started. It seems working on emulator: the debugger in fact reaches some code while it doesn't work on real device (Acer Liquid). Is it possible? Which is a way to detect outgoing calls? 回答1: Well, if it works on the emulator, I would expect it to work on the device. You might registering a PhoneStateListener