phone-call

Android check when outgoing call is received by callee

一世执手 提交于 2019-12-11 00:08:02
问题 I'm developing on android framework, I want to fire an event when an outgoing call is received by the callee , and also when the call is ended (from any of the two sides) 回答1: Inorder to know wheter the calling party has recieved the call, you will need to create a listener. class PhoneInfo extends BroadcastReceiver { /** * Getting the System Telephony Service and registering a listener for Voice Call state */ @Override public void onReceive(Context context, Intent intent) {

InCallService - Not working in Android Nougat

蹲街弑〆低调 提交于 2019-12-10 23:33:06
问题 I used InCallService to replace default call service, It is working fine in Android 6 (Marshmallow). But, in Samsung S8 with Android Nougat (version 7.0) not working. Doesn't get any call back of InCallService . Do I need any additional permissions for Android Nougat to access InCallService ? 来源: https://stackoverflow.com/questions/45079210/incallservice-not-working-in-android-nougat

How to get a state that the outgoing call has been answered?

只愿长相守 提交于 2019-12-10 22:46:33
问题 I'm using PhoneStateListener 's onCallStateChanged method to track the states of an outgoing phone call. I need to get the state of the outgoing call when accepted. I was using CALL_STATE_OFFHOOK to determine the answering state, but it is called even when the call receiver ignores the incoming call. Is there any accurate and possible way to get the phone call answered state? 来源: https://stackoverflow.com/questions/9392804/how-to-get-a-state-that-the-outgoing-call-has-been-answered

How to make a phone call from Apple watch?

瘦欲@ 提交于 2019-12-10 21:58:15
问题 Is there a way to make phone calls from WatchKit extension? Below is my code. NSExtensionContext *ctx = [[NSExtensionContext alloc] init]; NSString *cleanedString = [[@"1234567890" componentsSeparatedByCharactersInSet:[[NSCharacterSet characterSetWithCharactersInString:@"0123456789-+()"] invertedSet]] componentsJoinedByString:@""]; NSURL *telURL = [NSURL URLWithString:[NSString stringWithFormat:@"tel:%@", cleanedString]]; [ctx openURL:telURL completionHandler:^(BOOL success) { NSLog(@"fun=%s

How to make a call directly?

吃可爱长大的小学妹 提交于 2019-12-10 15:46:11
问题 when I use this code, first comes the dial pad screen with this number. Intent dialintnt = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:911")); startActivityForResult(dialintnt, CALLING); I don't want that screen. I want that when I click button directly calling that number. So how can I call a number onclick ? 回答1: See the answer You will need add CALL_PHONE and CALL_PRIVILEGED permissions to manifest file. Then the number can be called using: Uri callUri = Uri.parse("tel://911"); Intent

How to simulate incoming calls on a real device? [closed]

青春壹個敷衍的年華 提交于 2019-12-10 13:13:25
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . For testing purposes I want to simulate/spoof incomming calls on a real android device (ie. not the emulator). I know that DDMS provides this feature for emulators, but I am unable to find a solution for actual

getting the group name to the according pri port in asterisk

馋奶兔 提交于 2019-12-10 02:54:21
问题 I am using sagoma 8 port card My chan_dahdi.conf to configure the ports are ;autogenerated by /usr/sbin/wancfg_dahdi do not hand edit ;autogenrated on 2015-06-12 ;Dahdi Channels Configurations ;For detailed Dahdi options, view /etc/asterisk/chan_dahdi.conf.bak [trunkgroups] [channels] context=default usecallerid=yes hidecallerid=no callwaiting=yes usecallingpres=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes canpark=yes cancallforward=yes callreturn=yes echocancel=yes

Android: Detect currently active phone number during phone call

守給你的承諾、 提交于 2019-12-09 13:35:07
问题 Goal: On the Android platform, detect the phone number of the individual with whom the user is speaking to now. Currently, using PhoneListener, there exists a certain ambiguity in the case of calls on hold. Case: User is talking to someone during a call ("Call 1"). The user is therefore in call state OFFHOOK. Then the user is in state RINGING indicating an incoming phone call ("Call 2"). The state then changes to OFFHOOK. This could indicate one of two possibilities -- either the user

Get custom ringtone incoming call of Android

淺唱寂寞╮ 提交于 2019-12-08 18:14:30
I can use below code to get current ringtone of incoming call Uri defaultRintoneUri = RingtoneManager.getActualDefaultRingtoneUri( getApplicationContext(), RingtoneManager.TYPE_RINGTONE); defaultRingtone = RingtoneManager.getRingtone(getApplicationContext(), defaultRintoneUri); But I want to get custom ringtone which is set by other application. How can I get it? If the ringtone is used only for that application, then probably that ringtone file is private and owned only by that application. You won't have access to it, this is the security system on Android. Every app runs basically as a