I want to know the basic use of TelephoneNumberUtil class in Android. I searched on that but in the Android I'm not able to get a proper answer. Can anyone explain me the exact use of this class?
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?
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.CONTENT_URI, projection, null, null, People.NAME + " ASC");
c.moveToFirst();
int nameCol = c.getColumnIndex(…