phone-call

How to accept an incoming call by clicking a button?

↘锁芯ラ 提交于 2020-01-11 04:49:06
问题 I'm trying to implement my own phone call handling UI. What I want to do is, if a call comes in, the incoming telephone number and a picture are displayed, and, if I press a button, the incoming call will be accepted/answered. The related code is: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); answerButton = (Button) findViewById(R.id.pickup); answerButton.setOnClickListener(new OnClickListener() { public void

How to make an application default phone or Assistant handler on the device by giving user an option to make it default app

白昼怎懂夜的黑 提交于 2020-01-11 04:23:04
问题 We have received a policy notice from playStore as: Your app manifest requests the Call Log permission group (e.g. READ_CALL_LOG, WRITE_CALL_LOG, PROCESS_OUTGOING_CALLS) It must be actively registered as the default Phone or Assistant handler on the device. I am not able to understand what Assistant handler on the device . Any inputs or suggestions are most welcome. what are the minimum requirements by the android application to fullfil the requirement. 回答1: Check the documentation at: https:

get a notification from notificationCenter after returning from a phone call

倾然丶 夕夏残阳落幕 提交于 2020-01-11 03:56:17
问题 I want to do an action after the user tapped on the call button and made a call then returned to the app. This is my function for making a phone call : let phoneURL = URL(string: String(format: "tel://%@", phoneNumber.englishNumbers)) UIApplication.shared.open(phoneURL!) and I have set an observer on CallView in viewDidLoad() like this: NotificationCenter.default.addObserver(self, selector: #selector (showFeedBack), name: UIApplication.didEnterBackgroundNotification, object: nil) After I made

Can I make a phone call from HTML on Android?

拈花ヽ惹草 提交于 2020-01-08 17:09:42
问题 To make a phone call via HTML on an iPhone I create an <A/> tag with an href formatted as: <a href='tel:123-555-1212'>Dial Me</a> . Is there an equivelant for HTML on Android? CLARIFICATION - using the format href='tele:123-555-1212' does indeed work on on android. I was testing the app within a native Java wrapper on the device. It does not appear as if we can make a call from a web application hosted in a Native Wrapper. 回答1: Yes you can; it works on Android too: tel: phone_number Calls the

Can I make a phone call from HTML on Android?

南笙酒味 提交于 2020-01-08 17:07:13
问题 To make a phone call via HTML on an iPhone I create an <A/> tag with an href formatted as: <a href='tel:123-555-1212'>Dial Me</a> . Is there an equivelant for HTML on Android? CLARIFICATION - using the format href='tele:123-555-1212' does indeed work on on android. I was testing the app within a native Java wrapper on the device. It does not appear as if we can make a call from a web application hosted in a Native Wrapper. 回答1: Yes you can; it works on Android too: tel: phone_number Calls the

How to make call using Intent using Bluetooth headset

[亡魂溺海] 提交于 2020-01-06 19:37:42
问题 In my application I have to make call using Intent using Bluetooth Headset. Right now I am using below link. I used implementation from Using the Android RecognizerIntent with a bluetooth headset When calling dialog open Bluetooth Headset Connection going lost. Please help 来源: https://stackoverflow.com/questions/25462748/how-to-make-call-using-intent-using-bluetooth-headset

In app calling without redirecting to Phone activity

ⅰ亾dé卋堺 提交于 2020-01-06 06:11:25
问题 I want to know if there is any method to make a phone call in Android without redirecting the uri to Phone Activity. To make a phone call, String uri2 = "tel:678-547-9181"; Intent intent = new Intent(Intent.ACTION_CALL); intent.setData(Uri.parse(uri2)); startActivity(intent); This was the code i was using earlier. But this redirects to phone activity and makes a call. But i dont want to reveal the phone number to the user. Is there any way that i can do this? 回答1: That is not possible from an

What is the PhoneStateListener state when outgoing call is answered?

安稳与你 提交于 2020-01-02 09:24:48
问题 I want to know when an outgoing call is answered in my app. I am using a method called onCallStateChanged() from the PhoneStateListener class. I am looking at the Logcat when the outgoing call is answered to see which state it goes into (IDLE, OFFHOOK or Ringing). As per the documentation I would think it would go into the OFFHOOK but that is not the case. Any ideas on how I can detect the outgoing call being answered? 回答1: Phone state is Phonestate.Offhook as you are answering the call by

Free Modem Dialer

空扰寡人 提交于 2020-01-02 05:19:47
问题 Is there a telephone application for modems that can receive a phone number as a parameter and manage the call for themselves? I ask because in my application I must implement a click2call functionality and may be is a free software out there that I can use and I do not have to fight with TAPI. Thanks! 回答1: Here are a few wrappers available to abstract away the complicated parts of using TAPI. TAPI Wrapper http://www.vbrad.com/article.aspx?id=61 Normally, the domain of C/C++ programmers, this

Enable phone call functionality on change event (jQuery)

…衆ロ難τιáo~ 提交于 2020-01-01 15:05:39
问题 I'm trying to enable the phone call functionality on change event (HTML <select> tag) so as to reference the appropriate "tel:" value. I run a test on Android (both version 2.2 and 4.0 ) , using the default browser: I did not get the desired effect. Below is my code: HTML <select class="call-us-options"> <option value="">Select a branch:</option> <option value="branch-a">Branch A</option> <option value="branch-b">Branch B</option> <option value="branch-c">Branch C</option> </select> <a class=