phone-call

Interrupt incoming call in android

天大地大妈咪最大 提交于 2019-11-30 23:14:18
How to open a custom UI on incoming call with answer and reject button on it,I want to show custom UI instead of default dialer. I am using below code but dialer is open and my activity is not opened: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.callintruptdemo" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="17" /> <uses-permission android:name="android.permission.READ_PHONE_STATE"/> <application android:allowBackup="true" android:icon="

Make a call from my iPhone application

我只是一个虾纸丫 提交于 2019-11-30 22:56:55
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 URLWithString:phoneNumberScheme]]; No error! With NSlog I verified that the number was read correctly,

Java API to make a phone call [closed]

心已入冬 提交于 2019-11-30 21:23:56
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 call to my service provider. I'm looking for an API at level B. Also, I'm not using Android. I want to run this code on my server. I tried and landed upto skype. For using Skype, Skype should be installed on the machine(which I don't want). Is there any other solution to do this? Did you

Interrupt incoming call in android

雨燕双飞 提交于 2019-11-30 18:49:25
问题 How to open a custom UI on incoming call with answer and reject button on it,I want to show custom UI instead of default dialer. I am using below code but dialer is open and my activity is not opened: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.callintruptdemo" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="17" /> <uses-permission android

How to ask permission to make phone call from Android from Android version Marshmallow onwards?

江枫思渺然 提交于 2019-11-30 17:51:16
I am trying to make a phone call from Android, and I've set run time permissions as well. And it asks whether to allow making phone calls. But when I press allow, the app crashes: This is how I implemented it: private static final int REQUEST_PHONE_CALL = 1; Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + "+918511812660")); if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { if (ContextCompat.checkSelfPermission(MainActivity.this, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) { ActivityCompat.requestPermissions(MainActivity.this, new

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

泄露秘密 提交于 2019-11-30 16:26:54
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 And mailed this to the programmes who does use the intent android.intent.action.CALL_PRIVILEGED: Issue:

How can I call a number from button press in Android?

谁都会走 提交于 2019-11-30 16:12:31
问题 I'm very much a beginner at this and I'm struggling to get this to work. When button is pressed, I simply want the dialer to open with the specified number automatically inputted. So far I've tried the following: Button btn_call_us = (Button) findViewById(R.id.btn_call_us); btn_call_us.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Intent callIntent = new Intent(Intent.ACTION_CALL); callIntent.setData(Uri.parse("tel:00000000")); startActivity(callIntent); } });

Call 911 in Android

只愿长相守 提交于 2019-11-30 12:46:47
I want to call Emergency number using Android SDK. I am using following code to call the number (911). This code works fine for all the numbers except 911 (Emergency Number). When I use 911, then it shows the dialer screen that I don't want. Is there any procedure to call 911 without open the dialer or can we stop the user to edit the number in Dialer screen? Uri callUri = Uri.parse("tel://911"); Intent callIntent = new Intent(Intent.ACTION_DIAL,callUri); callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_NO_USER_ACTION); startActivity(callIntent); The code provided should

iOS How to check if currently on phone call

自古美人都是妖i 提交于 2019-11-30 11:04:02
问题 I have look around and all I can find is checking the callState of CTCallCenter. However, this works by listening to an event - which depending on whether the application is active/suspended/resumed the event can be raised at different time. What I need is rather than listening to event and got told when call is connected, I want to decide myself when to ask if the call is connected. Use case: When phone call is connected - user knows and will always click on the app icon, which will open the

Is it possible to play music during calls so that the partner can hear it ? Android

不问归期 提交于 2019-11-30 09:04:23
I'm trying to make and app like Call Cheater (Originally developed for Symbian OS) Is it possible to play a music during a phone conversation where receiver and caller should hear the same sound or music? If yes how can I implement this? Sebastiano You failed to find an app that does this because it is not possible . The documentation clearly states ( here ): Note : You can play back the audio data only to the standard output device. Currently, that is the mobile device speaker or a Bluetooth headset. You cannot play sound files in the conversation audio during a call. The reason behind this