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
31
votes
4 answers

Contact us functionality in Rails 3

I want to make a contact us form in Rails 3 with the following fields: Name Email Message title Message body The posted messages are intended to go to my email address so I don't neccessarily must store the messages in the database. Do I have to…
rodrigoalvesvieira
  • 7,895
  • 15
  • 63
  • 84
26
votes
0 answers

How to get whatsapp Contacts from Android Programmatically?

I have to try to get WhatsApp contacts from phone and I get a total Count of WhatsApp contact but from RawContacts how to get WhatsApp numbers and names that I don't know. I have tried to find a solution but can't get the exact solution for that.…
25
votes
4 answers

How can I choose a phone number with Android's contacts dialog

I'm using the old Contacts API to choose a contact with a phone number. I want to use the newer ContactsContracts API. I want... ...a dialog shown with all contacts that have phone numbers. ...the user to choose a contact AND one of their phone…
NateS
  • 5,751
  • 4
  • 49
  • 59
25
votes
9 answers

Insert a new contact intent

For one of my apps, I need the user to select one of his existing contacts or to create a new one. Picking one is clearly easy to do with the following code: i = new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI); startActivityForResult(i,…
Manitoba
  • 8,522
  • 11
  • 60
  • 122
24
votes
2 answers

What is the difference in contacts versus raw-contacts?

I have a "dump" utility that I am using to study the ContactsContract since I don't quite get it in the documentation. When I dump the contacts it counts 263 records in the table, however, the contacts application on my device lists that I have 244…
mobibob
  • 8,670
  • 20
  • 82
  • 131
23
votes
6 answers

How load all the contacts with minimum time in Android

In my project getting contacts is taking a long time to load. What are ways to reduce the time of getting contacts Assume there are 1000 contacts in my phone. Right now it is taking more than 2 minutes to load all the contacts How can I reduce…
Bharathi D
  • 953
  • 1
  • 15
  • 28
21
votes
2 answers

Can PWA access contacts, gps or use the phone camera?

Can PWA access contacts, gps or use the phone camera? Is this possible in any system (ios, android) ? Is there any plan in development to implement any of these features ?
KrissJedi
  • 321
  • 1
  • 3
  • 8
20
votes
6 answers

How to update existing contact?

I have one existing contact, I need to add a work address to that existing contact. I am using the following code, but it's not working. String selectPhone = Data.CONTACT_ID + "=? AND " + Data.MIMETYPE + "='" + …
Baskar
  • 549
  • 2
  • 6
  • 12
20
votes
1 answer

Android SMS Content (content://sms/sent)

I'm having a problem reading the SMS messages from the device. When acquiring a content provider for the URI content://sms/inbox, everything is fine. I can read the person column to find the foreign key into the people table and ultimately reach the…
Martin
  • 425
  • 1
  • 6
  • 11
20
votes
1 answer

How do implicit joined columns work with Android contacts data?

I'm querying the ContactsContract.Data table to find phone records. I get an error when I create a new CursorLoader: java.lang.IllegalArgumentException: Invalid column deleted My code: import…
20
votes
5 answers

Android - Get Contact Photo from phone number

how can I get contact photo from a contact's address (phone number)?
farhad.kargaran
  • 2,233
  • 1
  • 24
  • 30
19
votes
1 answer

android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 2

Below is my codes and I got the android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 2 error. Can anyone tell me how to solve it? ContentResolver cr = getContentResolver(); Cursor cur =…
user596379
  • 213
  • 1
  • 4
  • 11
19
votes
1 answer

With CNContactPickerViewController in iOS 9.0, how to enable/disable single or multiple selection?

The delegate CNContactPickerDelegate have methods for single and multiple selections. But how do we specify we want single or multiple selection when we present the view controller? I guess I miss something that perhaps also causes the problem I…
PatrickV
  • 1,090
  • 2
  • 9
  • 23
18
votes
2 answers

Request Access To Contacts in Swift 3

I want to access the user's Contacts and am planning to do so using the Contacts and ContactsUI framework that Apple supplies. First, though, I need to ask permission to access the user's contacts and am having trouble doing so. In Swift 2, one…
Theo Strauss
  • 1,281
  • 3
  • 19
  • 32
18
votes
2 answers

Getting merged/unified entries from ABAddressBook

I'm developing an application that is showing the iPhone contacts. The ABAddressBookRef returns duplicate entries for a contact that appears only once in the iPhone contacts application. Looking on the contact card (from the iPhone contacts), in…
Amir Naor
  • 2,236
  • 20
  • 27