All Questions

785
votes
36answers
761856 views

A comprehensive regex for phone number validation

I'm trying to put together a comprehensive regex to validate phone numbers. Ideally it would handle international formats, but it must handle US formats, including the following: 1-234-567-8901 1-23...
348
votes
14answers
319694 views

Programmatically obtain the phone number of the Android phone

How can I programmatically get the phone number of the device that is running my android app?
294
votes
9answers
178756 views

Programmatically get own phone number in iOS

Is there any way to get own phone number by standard APIs from iPhone SDK?
29
votes
6answers
31831 views

TelephonyManager.getLine1Number() failing?

I want to get phone number of android device. I use this code: TelephonyManager tm = (TelephonyManager)this.getApplicationContext().getSystemService(Context.TELEPHONY_SERVICE); String phoneNumber= ...
11
votes
3answers
21790 views

MSISDN : Is it a SIM Card Data? Why all The Provided Function (from Blackberry and Android) to fetch MSISDN not reliable?

I have several question about MSISDNs. I understand: MSISDN is the basically the phone number It is not IMSI What i need to know further are: Is MSISDN number burnt (stored) in SIM Card? If it i...
422
votes
14answers
347589 views

How to mark-up phone numbers?

I want to mark up a phone number as callable link in an HTML document. I have read the microformats approach, and I know, that the tel: scheme would be standard, but is quite literally nowhere impleme...
64
votes
11answers
116017 views

Read all contact's phone numbers in android

I'm using this code to retrieve all contact names and phone numbers: String[] projection = new String[] { People.NAME, People.NUMBER }; Cursor c = ctx.getContentResolver().query(People.CONTE...
63
votes
23answers
61992 views

Phone number formatting

I have a text field where the user enters data. It's a phone number field. If the user enters 1234567890, I want it displayed as (123)-(456)-7890 as the user types. How is this possible?
134
votes
4answers
95743 views

How do I get the dialer to open with phone number displayed?

I don't need to call the phone number, I just need the dialer to open with the phone number already displayed. What Intent should I use to achieve this?
45
votes
5answers
48262 views

Android: Retrieve contact name from phone number

I would like to retrieve the name of a contact associated with an incoming telephone number. As I process the incoming number in the broascastreceiver having a String with the name of the incoming cal...

Previous Next