phone-call

How to send fake call broadcast on android

拜拜、爱过 提交于 2019-12-19 04:21:47
问题 I am trying to send a broadcast to simulate an incoming call. I added the permission in AndroidManifest.xml file, <uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission> When I try to run the program, the phone reboots.(Emulator too). Intent intent = new Intent(); intent.setAction("android.intent.action.PHONE_STATE"); intent.putExtra(TelephonyManager.EXTRA_STATE, TelephonyManager.CALL_STATE_RINGING); intent.putExtra("EXTRA_INCOMING_NUMBER", "923982398"); intent

How to send fake call broadcast on android

纵饮孤独 提交于 2019-12-19 04:21:10
问题 I am trying to send a broadcast to simulate an incoming call. I added the permission in AndroidManifest.xml file, <uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission> When I try to run the program, the phone reboots.(Emulator too). Intent intent = new Intent(); intent.setAction("android.intent.action.PHONE_STATE"); intent.putExtra(TelephonyManager.EXTRA_STATE, TelephonyManager.CALL_STATE_RINGING); intent.putExtra("EXTRA_INCOMING_NUMBER", "923982398"); intent

Make calls using telnet from one Android Emulator to another?

寵の児 提交于 2019-12-19 04:18:17
问题 Is it possible to make calls through telnet from one Android Emulator to another? For example, I have two emulators 5554 and 5556 open on the screen. I can use the command: gsm call 5554 to get an incoming call from 5554 through telnet. Is it possible to make an outgoing call from 5554 to 5556 or vice-versa? 回答1: Yes, it is possible. USe the following stps: Start both the emulators (e.g., 5556 and 5558) On windows go to start; type cmd; and type telnet localhost 5556 and you will get

Block incoming calls

假如想象 提交于 2019-12-19 03:58:26
问题 my VoiP-client would like to block all incoming calls to the phone while my own call is taking place. Is it possible to do this somehow? 回答1: Not with the current SDK no, You can monitor incoming calls and give the user the option to answer with your application instead of the native app 回答2: Yes you can block incoming calls. Using this code String phonestate = bundle.getString(TelephonyManager.EXTRA_STATE); try { if (TelephonyManager.EXTRA_STATE_RINGING.equalsIgnoreCase(phonestate)) { try {

Make a call from my iPhone application

喜欢而已 提交于 2019-12-19 03:34:33
问题 I have implemented the ability to make a call from clicking on a row of descriptive tableview of my hotel; I used the URL scheme by writing the following code in method "didSelectRowAtIndexPath ": NSString *phoneNumber=element.phone; [NSString *phoneNumberScheme = [NSString stringWithFormat:@"tel:%@ ", phoneNumber]; NSlog(phoneNumberScheme); phoneNumberScheme = [phoneNumberScheme stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; [[UIApplication sharedApplication] openURL:[NSURL

Make a call from my iPhone application

不羁的心 提交于 2019-12-19 03:34:31
问题 I have implemented the ability to make a call from clicking on a row of descriptive tableview of my hotel; I used the URL scheme by writing the following code in method "didSelectRowAtIndexPath ": NSString *phoneNumber=element.phone; [NSString *phoneNumberScheme = [NSString stringWithFormat:@"tel:%@ ", phoneNumber]; NSlog(phoneNumberScheme); phoneNumberScheme = [phoneNumberScheme stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; [[UIApplication sharedApplication] openURL:[NSURL

Java API to make a phone call [closed]

旧时模样 提交于 2019-12-19 03:19:21
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 months ago . Is there any Java API to make a phone call to a mobile(provided that service provider support will be arranged to make that call)? myProgram(A) --> Java API to make a call like Skype(B) --> PSTN/Mobile network support(c) Module A will be my Java code and it'll call the B's API which will in turn transfer the

How can I add my application to the android default Dialer selection?

你说的曾经没有我的故事 提交于 2019-12-18 18:05:31
问题 My Question is how can I add my application to the android default Dialer selection, to be more specific without using the android.intent.action.CALL_PRIVILEGED? Now I am using this code below, this works fine: <intent-filter> <action android:name="android.intent.action.CALL_PRIVILEGED" /> <category android:name="android.intent.category.DEFAULT" /> <data android:scheme="tel" /> </intent-filter> HOWEVER Google recently posted: http://productforums.google.com/forum/#!topic/mobile/wXqnbynsL8Y

How can I add my application to the android default Dialer selection?

大兔子大兔子 提交于 2019-12-18 18:05:14
问题 My Question is how can I add my application to the android default Dialer selection, to be more specific without using the android.intent.action.CALL_PRIVILEGED? Now I am using this code below, this works fine: <intent-filter> <action android:name="android.intent.action.CALL_PRIVILEGED" /> <category android:name="android.intent.category.DEFAULT" /> <data android:scheme="tel" /> </intent-filter> HOWEVER Google recently posted: http://productforums.google.com/forum/#!topic/mobile/wXqnbynsL8Y

Can we fire an event when ever there is Incoming and Outgoing call in iphone?

为君一笑 提交于 2019-12-18 05:01:16
问题 Can I fire an event when ever there is Incoming and Outgoing call ends on iphone? Axample of an event is calling a webservice . 回答1: Yes you can, but not necessarily immediately. There is a framework, called the CoreTelephony framework, which has a CTCallCenter class. One of the properties on this class is the callEventHandler property. This is a block that gets fired when then state of a phone call changes. For example: CTCallCenter *callCenter = ...; // get a CallCenter somehow; most likely