Questions tagged [telephony]

related to transmitting or receiving data over telephone networks.

820 questions
177
votes
24 answers

What regular expression will match valid international phone numbers?

I need to determine whether a phone number is valid before attempting to dial it. The phone call can go anywhere in the world. What regular expression will match valid international phone numbers?
Abtin Forouzandeh
  • 5,635
  • 4
  • 25
  • 28
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
54
votes
4 answers

Detect if an outgoing call has been answered

Once ACTION_NEW_OUTGOING_CALL has been broadcasted, I need to capture the following event of the other party answer. Could you advice on how to achieve that please? I know it is possible as the Android dialer app changes the green Android icon to…
mobilekid
  • 1,629
  • 5
  • 19
  • 27
53
votes
9 answers

How to programmatically answer/end a call in Android 4.1?

I am writing an android app in which I need to answer an incoming call, do some work and then end the call. After all the Googling I could find two different ways to achieve this both of which do not work with recent versions of Android,…
Piyush
  • 728
  • 1
  • 8
  • 11
48
votes
8 answers

How to hang up outgoing call in Android?

I am developing an application where one of the things we need is to control the outgoing call, at least to be able to stop it from our application. I've tried using Intent.ACTION_CALL from an existing activity: Intent callIntent = new…
Tilek
  • 636
  • 1
  • 8
  • 14
39
votes
5 answers

How to grant MODIFY_PHONE_STATE permission for apps ran on Gingerbread

I write an application that attempts to modify phone call state. It works well on Android 2.2 or less, but throw an exception on Android 2.3 because of the lack of permission on android.permission.MODIFY_PHONE_STATE permission (I declared this…
Bao Le
  • 16,643
  • 9
  • 65
  • 68
39
votes
9 answers

Get Signal Strength in Android

I want to get the Signal Strength of the Device at the point I hit the API call. I have searched on all the related threads and I am not successful yet. So I would like to get the signal strength like SignalStrength ss = null ; // some…
VIGNESH
  • 2,023
  • 8
  • 31
  • 46
37
votes
9 answers

Disable Proximity Sensor during call

I dropped my phone and looks like my proximity sensor no longer works reliably. It returns Near all the time. The problem is, the display turns off during call and I wont be able to use the number pad to enter pin or conference another call, or even…
32
votes
1 answer

Google's Messenger app not attach Image while send MMS

I'm unable to send MMS with image on Google's Messenger app. While some of the android device by default install this SMS app and for that when I send MMS using Intent than it's not working. The problem is ToNumber and MMS content set but the image…
Abhishek Patel
  • 4,280
  • 1
  • 24
  • 38
25
votes
3 answers

Sending DTMF tones over the uplink in-call

I'm working on a project that requires my app to be able to send DTMF tones on the voice's uplink frequency during an active call. My 2 conditions are: We don't use a customized Android platform We don't need to root the phone I've spent several…
Simon McCorkindale
  • 251
  • 1
  • 3
  • 3
24
votes
6 answers

How to detect when phone is answered or rejected

I managed to prepare an activity when the phone is ringing. Now I need to know how to cancel this activity, when I answer the phone or I reject the call.Do I call EXTRA_STATE_IDLE or EXTRA_STATE_OFFHOOK ? Any ideas? Manifest
user1163234
  • 2,407
  • 6
  • 35
  • 63
24
votes
1 answer

How do I set my app as the default SMS app?

I am following this tutorial on setting my app as the default SMS app, but for some reason, my app does not appear in the list of available options. I have tried to research this as much as possible, but everything points back to that same tutorial,…
Jayce
  • 781
  • 3
  • 16
  • 35
24
votes
3 answers

end incoming call programmatically

This is a familiar question in SO. and what I need is to end call programmatically. I have searched a…
RuntimeException
  • 1,201
  • 3
  • 14
  • 25
23
votes
4 answers

phone number should be a string or some numeric type that have capacity to save phone number?

We want to store 10 digit mobile number i.e.9999999999. Should it be numeric or string datatype? We don't want to do any calculative or manipulation operation on this Which is better memory and performance wise?
Sahil Sharma
  • 3,847
  • 6
  • 48
  • 98
21
votes
7 answers

How to get phone number from an incoming call?

How do I get the phone number when there is an incoming call in Android?
Saqib Abbasi
  • 607
  • 2
  • 6
  • 17
1
2 3
54 55