Questions tagged [contacts]

Related to accessing contacts (CRUD, operations on contacts like messaging) from contact-list or address book in mails, android, iphone, windows-phone or facebook.

Contacts, called Address Book before OS X Mountain Lion, is a computerized address book included with Apple's OS X. It includes various syncing capabilities and integrates with other OS X applications and features.

Questions can be about accessing contacts(CRUD, operations on contacts like messaging) from contact-list or address book in mails, android, iphone, windows-phone or facebook.

See also:

4036 questions
133
votes
13 answers

How to call Android contacts list?

I'm making an Android app, and need to call the phone's contact list. I need to call the contacts list function, pick a contact, then return to my app with the contact's name. Here's the code I got on the internet, but it doesnt work. import…
Tam N.
  • 2,687
  • 9
  • 30
  • 29
110
votes
13 answers

Programmatically Request Access to Contacts

Since updating to iOS 6 I've noticed that my code to add a contact to iPhone's address book no longer works. I believe this is a permission related problem, since Apple now requires user permission before accessing contacts (fixing this issue). I…
Kyle Clegg
  • 38,547
  • 26
  • 130
  • 141
96
votes
9 answers

How to read contacts on Android 2.0

I'm working on Android 2.0 and am trying to receive a list of all contacts. Since android.provider.Contacts.People is deprecated, I have to use android.provider.ContactsContract, But I can't find a proper example of how to use it (ex: retrieve a…
appme up
  • 961
  • 1
  • 7
  • 3
80
votes
28 answers

Send text to specific contact programmatically (whatsapp)

I wanted to know how I can send text to a specific whatsapp contact. I found some code to view a specific contact, but not to send data. Cursor c = getContentResolver().query(ContactsContract.Data.CONTENT_URI, new String[] {…
Manuel Allenspach
  • 12,467
  • 14
  • 54
  • 76
76
votes
20 answers

How to fetch all contacts record in iOS 9 using Contacts Framework

Most part of AddressBook framework is deprecated in iOS 9. In the new Contacts Framework documentation only shows how to fetch records matches a NSPredicate, but what if I want all the record?
Jay Hu
  • 6,041
  • 3
  • 22
  • 33
71
votes
15 answers

Read all contacts' 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.CONTENT_URI, projection, null, null, People.NAME + "…
shuwo
  • 879
  • 2
  • 8
  • 7
55
votes
11 answers

Adding contact form to a static website

I have to add a contact form to a static website. I already got some experience with forms, done 2 or 3 using django/python, but sadly using django is not an option here, it has to be added to a static website. Could you please tell me what options…
mmln
  • 2,104
  • 3
  • 24
  • 33
50
votes
3 answers

Android contacts Display Name and Phone Number(s) in single database query?

I'm trying to obtain a list of contacts from the native database with their Display Name and Phone Number (any or all). There are many methods for obtaining this information with several queries to the phone's database, but this introduces…
Derek
  • 1,572
  • 1
  • 14
  • 25
44
votes
5 answers

limiting number of rows in a ContentResolver.query() function

Is there a way to limit the number of returned rows to a cursor? I have a phone with about 4000 contacts, I just need some of them. this is the code i'm using db = new dBHelper(this); ContentResolver cr = getContentResolver(); …
user1347945
  • 493
  • 2
  • 7
  • 11
42
votes
6 answers

Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord in Android Studio

I am getting this error when I am trying to read contacts from phone and I included READ_CONTACTS permission in Manifest file. And the strange thing is that it was working fine in Eclipse but when I converted my project to Gradle and run it in…
Navakanth
  • 834
  • 1
  • 12
  • 24
40
votes
12 answers

Prevent php web contact form spam

I am an amateur web designer, I have searched on stackoverflow.com and other websites and have found many fixes for this issue I'm having, but none of them have worked (probably because I implement them incorrectly). I'm hoping someone with more…
user7858610
  • 403
  • 1
  • 4
  • 5
37
votes
2 answers

get contact info from android contact picker

I'm trying to call the contact picker, get the persons name, phone and e-mail into strings and send them to another activity using an intent. So far this works: Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); …
MindlessBarber
  • 1,590
  • 6
  • 22
  • 39
37
votes
3 answers

iOS - add contact into Contacts?

Heyo! Is there a way how when a user taps a button it can add or update a contact into the actual Apple Contacts Book? Some festivals have email responses include a "name card" that the receiver can download and find in their contact book.
HowbeitGirl
  • 591
  • 3
  • 12
  • 21
35
votes
3 answers

How to create a link to contact specific phone number via Telegram?

So I found out I could use a link like this in HTML: WhatsApp in order to let a user contact {{phone_number}} directly from a webpage (via WhatsApp web). My question…
Joan Sagué Flo
  • 361
  • 1
  • 3
  • 6
35
votes
11 answers

How to get a CNContact phone number(s) as string in Swift?

I am attempting to retrieve the names and phone number(s) of all contacts and put them into arrays with Swift in iOS. I have made it this far: func findContacts() -> [CNContact] { marrContactsNumber.removeAllObjects() …
Baylor Mitchell
  • 1,029
  • 1
  • 11
  • 19
1
2 3
99 100