Questions tagged [phone-call]

Phone calls are a method of transferring real-time two-way voice information over large distances.

Since Meucci (or Bell) invented the telephone, distances between people have been reduced to a mere physical meaning.
Nowadays you can share your ideas or feelings or whatever in a matter of seconds, through a simple phone call.

1220 questions
576
votes
7 answers

How to trigger a phone call when clicking a link in a web page on mobile phone

I need to build a web page for mobile devices. There's only one thing I still haven't figured out: how can I trigger a phone call through the click of text? Is there a special URL I could enter like the mailto: tag for emails? Device specific…
Frederic Morin
  • 8,733
  • 4
  • 28
  • 27
384
votes
21 answers

How to make a phone call using intent in Android?

I'm using the following code to make a call in Android but it is giving me security exception please help. posted_by = "111-333-222-4"; String uri = "tel:" + posted_by.trim() ; Intent intent = new Intent(Intent.ACTION_CALL); …
141
votes
13 answers

Make a phone call programmatically

How can I make a phone call programmatically on iPhone? I tried the following code but nothing happened: NSString *phoneNumber = mymobileNO.titleLabel.text; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneNumber]];
user564963
  • 2,284
  • 5
  • 24
  • 33
136
votes
10 answers

How to make a phone call programmatically?

I'm passing to an activity the number to call by a bundle and then, in such activity, I have a button to call to that number, this is the code: callButton.setOnClickListener(new OnClickListener() { public void onClick(View v) { …
NullPointerException
  • 36,107
  • 79
  • 222
  • 382
131
votes
11 answers

How to make phone call in React Native?

I want to call to the value of Text component when I press it. But, actually, I haven't enough knowledge for that. Can you, please, tell me, which library or component should I use?
Just Ahead
  • 2,377
  • 6
  • 16
  • 25
130
votes
21 answers

How to make a phone call in android and come back to my activity when the call is done?

I am launching an activity to make a phone call, but when I pressed the 'end call' button, it does not go back to my activity. Can you please tell me how can I launch a call activity which comes back to me when 'End call' button is pressed? This is…
hap497
  • 154,439
  • 43
  • 83
  • 99
107
votes
25 answers

Calling a phone number in swift

I'm trying to call a number not using specific numbers but a number that is being called in a variable or at least tell it to pull up the number in your phone. This number that is being called in a variable is a number that I retrieved by using a…
Thomas Martinez
  • 1,631
  • 3
  • 16
  • 21
102
votes
13 answers

How to make a phone call from a flutter app

I try to make a phone call from my Flutter app. With the following code: UrlLauncher.launch('tel: xxxxxxxx'); I found this Function on the GitHub flutter repo: https://github.com/flutter/flutter/issues/4856 But this doesn't work for me. Is this…
Lukas Kirner
  • 3,989
  • 6
  • 23
  • 30
100
votes
6 answers

How to make phone call in iOS 10 using Swift?

I want my app to be able to call a certain number when a button is clicked. I've tried to google it but there doesn't seem to have one for iOS 10 so far (where openURL is gone). Can someone put an example for me on how to do so? For instance like:…
user3175707
  • 1,123
  • 3
  • 11
  • 14
94
votes
10 answers

How can incoming calls be answered programmatically in Android 5.0 (Lollipop)?

As I am trying to create a custom screen for incoming calls I am trying to programatically answer an incoming call. I am using the following code but it is not working in Android 5.0. // Simulate a press of the headset button to pick up the…
maveroid
  • 1,840
  • 1
  • 20
  • 20
88
votes
4 answers

URL Scheme for Phone Call

Much like the "mailto" URL prefix launches the user's default mail program and starts a new email with specified address, is there a similar URL scheme that would initiate a phone call? Perhaps "phone," "call," or "sip"? Incidentally, I'm targeting…
Jason Marcell
  • 2,785
  • 5
  • 28
  • 41
86
votes
3 answers

Can I make a phone call from HTML on Android?

To make a phone call via HTML on an iPhone I create an tag with an href formatted as: Dial Me. Is there an equivelant for HTML on Android? CLARIFICATION - using the format href='tele:123-555-1212' does indeed work…
Kevin
  • 9,309
  • 12
  • 44
  • 51
75
votes
5 answers

How to block calls in android

I want to block calls from few numbers, for that I want to write a app of my own. So what are the APIs which I should be using? Basically I want to get notified when a call comes, i want to compare numbers if it is what i want to block, i want to…
Anurag Uniyal
  • 85,954
  • 40
  • 175
  • 219
54
votes
14 answers

make a phone call click on a button

I'm trying to make a call when I press a button in android ((Button)findViewById(R.id.button1)).setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { String phno="10digits"; Intent i=new…
prasad.gai
  • 2,977
  • 10
  • 58
  • 93
49
votes
9 answers

Detecting whether or not device support phone calls?

Is the below code reliable to be used to determine whether a device can support phone calls or not? My concern is if apple changes the iphone string to anything else let's say they decide to have "iphone 3g", "iphone 4" etc. [[UIDevice…
aryaxt
  • 76,198
  • 92
  • 293
  • 442
1
2 3
81 82