phone-call

Can't dial a phone on the event of a button press in Android Studio

倾然丶 夕夏残阳落幕 提交于 2019-12-13 07:19:24
问题 In my android app, I have a navigation drawer with a few buttons that open different fragments with associated layouts. One of the buttons is supposed to call a function which in theory should perform a phone dial. It just doesn't seem to work. Nothing happens, and the navigation drawer just closes. I already implemented this permission in the manifest, which should do the work for the sake of permissions: <uses-permission android:name="android.permission.CALL_PHONE"></uses-permission> My

Android how to hold and unhold active phone call

房东的猫 提交于 2019-12-13 00:57:39
问题 Can anybody let me know how to hold and unhold active phone call? I am trying to do it using ITelephony.aidl but unable to hold the call. Here is the code I tried to hold an active call TelephonyManager tm = (TelephonyManager) CallholdddActivity.this.getSystemService(Context.TELEPHONY_SERVICE); try{ Class<?> c = Class.forName(tm.getClass().getName()); Method m = c.getDeclaredMethod("getITelephony"); m.setAccessible(true); com.android.internal.telephony.ITelephony telephonyService =

I want to call phone number “#51234” in Xcode use telprompt [duplicate]

倖福魔咒の 提交于 2019-12-13 00:56:55
问题 This question already has answers here : Phone call number with hashtag on iOS (3 answers) Closed last year . I want to call phone number "#51234" in Xcode use telprompt. but telprompt is reject it. [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"telprompt://#5%@", nzoneNum]]]; nzomeNum is "1234" 回答1: At least as of iOS 11, one can dial numbers with a hashtag (#) or asterisk (*). Make calls with these characters by first encoding the phone number ,

How to check and hang-up/reject incoming/outgoing calls on Android in Delphi?

孤街醉人 提交于 2019-12-13 00:47:24
问题 Is there any solution to programmatically check and hang-up/reject incoming/outgoing calls on Android in Delphi? 回答1: First, you must have own BroadcastReceiver unit - you can download it from here. unit CSBroadcastReceiver; interface uses System.Classes ,System.SysUtils {$IFDEF ANDROID} ,Androidapi.JNI.Embarcadero ,Androidapi.JNI.GraphicsContentViewText ,Androidapi.Helpers ,Androidapi.JNIBridge ,Androidapi.JNI.JavaTypes ,Androidapi.JNI.App {$ENDIF} ; type {$IFNDEF ANDROID} JIntent = class

With Android APIs, can I simulate/create an incoming call?

て烟熏妆下的殇ゞ 提交于 2019-12-12 12:31:05
问题 With Android APIs, can I simulate/create an incoming call? This is not for testing purposes. I actually want my app to call the phone itself and have it ring. 回答1: In order to create a "mock" incoming call, you would need to broadcast the intent associated with this. Some info on how to handle an incoming call can be found here. You will instead need to create the broadcast intent on your own, and pass in the necessary extras. An example of creating an intent with extras, and how to handle

I am not getting the outgoing call phone number? both in emulator and real phone also getting null

懵懂的女人 提交于 2019-12-12 10:15:43
问题 call.java: public class Call extends Activity{ boolean timerhasstarted; Intent callIntent; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); call(); } void call() { String num="7829893070"; callIntent=new Intent(Intent.ACTION_CALL); callIntent.setData(Uri.parse("tel:"+num)); if(!timerhasstarted) { startActivity(callIntent); ct.start(); timerhasstarted=true; } else { ct.cancel(); timerhasstarted=false; Toast.makeText

How can I play sound when device receive incoming call in android?

瘦欲@ 提交于 2019-12-12 03:08:42
问题 I want to receive incoming call automatically that was I done already now I want to play my own created sound to my caller rather than android will use its default mike.. Can is it possible to play our own sound after receiving incoming call? I refereed this. Can anyone tell me is it possible now? I searched lot related to this topic but still I am not able to find something useful. If anyone know about this then please help me.. Thanks in advance. 回答1: I found this may be helpful for you

Twllio : Play Sound during call

前提是你 提交于 2019-12-12 02:15:33
问题 I want play sound during call, so receiver will able to listen that sound. Suppose, I am in office, And I want play sound of traffic during Twilio Call. Is this possible using Twilio in iOS ? If I select button to play traffic sound, then only receiver can able to listen the same. If receiver select to play sound of Party, then only caller can listen that sound, not both the parties. If yes, What are the possible ways to implement the same. 回答1: Twilio developer evangelist here. You could use

Mute (or disable) phone calls while app is running

核能气质少年 提交于 2019-12-11 14:55:23
问题 Is it possible to mute the phone while my app is active? Or to even disable the phone call screen? My use case is following: I have a music player in my app and it's a fitness app, so the user does eventually not want to be disturbed. So I want to allow him to activate a "do not disturb" mode, which disables incoming call notifications, at least the sound. What I need is following: Bluetooth must work, because of the headphones, so plane mode would not even be a manual workaround Can this

How to intercept and parse incoming calls via an app

浪子不回头ぞ 提交于 2019-12-11 12:06:23
问题 How does Truecaller intercept incoming phonecalls on the iphone to display caller ID? I didn't think this was possible from within the app? Specifically, if I wanted to build this functionality, what protocols would I go about using? http://www.truecaller.com/how-it-works 回答1: On an iPhone, without jailbreaking it: - you cannot intercept a call in any way - you cannot determine the phone number nor the caller ID identifying information regarding the call. Even if you could there is no way to