Questions tagged [contactscontract]

Android's Contacts API is defined in the android.provider.ContactsContract and related classes.

The Android platform provides a Contacts API for managing and integrating contacts from multiple accounts and from other data sources.

To handle overlapping data from multiple sources, the contacts content provider aggregates similar contacts and presents them to users as a single entity.

ContactsContract defines an extensible database of contact-related information. Contact information is stored in a three-tier data model: Contacts, Raw Contacts and Data.

More information can be found in the documentation for the ContactsContract class.

551 questions
1
vote
1 answer

Fragment not populating after loading data from android ContactsContract database

I am trying to display phone contacts in a listview but UI not updating after taking permission on first time.I can only see changes when I restart App. I have tried to use notifyDataSetChanged but nothing changed. public class ContactFragment…
1
vote
1 answer

Android Upgrade "send SMS function" in QuickContact

When i set up Skype on Android and clik on phone button in QuickContact in default "Contacts book" system asks how to perform this action : "Skypeout" or "Telephone". I want to do similar function with sending sms from QuickContact bar, what i have…
dilix
  • 3,761
  • 3
  • 31
  • 55
1
vote
1 answer

How to get contact website information in android?

I try to get a contact detail. I can get DISPLAY_NAME, Phone.DATA from Phone.CONTENT_URI. I use below codes : String urlData = ""; final String[] projection = new String[] { ContactsContract.CommonDataKinds.Website.URL, …
user2362956
1
vote
1 answer

Android - Search contacts with different formats of number

In my application I try to search a contact using the phonenumber. The phonenumber I am searching with is always in the same format ('123456789' for example). But the following code retrieves not all contacts I expected. The main issue might be the…
Timitrov
  • 211
  • 1
  • 3
  • 14
1
vote
3 answers

How to share a contact programatically in android

I am presently working on a contact app and i have been searching for a while to share a contact programatically in android. I didn't know in which format i should send the contact to other device. If i am sending as text, how it will be processed…
Kanagalingam
  • 53
  • 1
  • 10
1
vote
1 answer

ContactsContract.Contacts query for specific account

Is there an efficient query to find all aggregate contacts for a specific account name & type? The ContactsContract.Contacts table has the IN_VISIBLE_GROUP column which is effective for contact group membership. So, if the user has selected various…
Peri Hartman
  • 19,314
  • 18
  • 55
  • 101
1
vote
2 answers

Android : I am trying to search for contacts on basis of their display name

I am trying to search for contacts on basis of their display name. I have taken the reference from sample code given on the android developer site. https://developer.android.com/training/contacts-provider/retrieve-names.html In this sample, search…
1
vote
0 answers

What is the use case for RawContact DATA_SET?

According to Android documentation (ContactsContract.RawContacts), the DATA_SET column provides another degree of uniqueness. The data set within the account that this row belongs to. This allows multiple sync adapters for the same account type…
Peri Hartman
  • 19,314
  • 18
  • 55
  • 101
1
vote
1 answer

Android T9 Search Contacts ( Smart Dialer )

I would like to implement T9 search like android native dialer or TrueCaller dialer. What I have achieved till now is:- Convert keystrokes to string patterns like if I press 2 on dialer it would gives me - "abc" "ac" "ca" and so on Now I made a…
Vikas Rohilla
  • 31
  • 1
  • 2
  • 4
1
vote
1 answer

Android: Create Contact API 2.x

using the API I am trying to create a contact, using the API 2.x and not the old one. Here http://developer.android.com/guide/topics/providers/content-providers.html it only explains the old API. I haven't found any proper tutorial, example, etc.…
AndyAndroid
  • 4,039
  • 14
  • 44
  • 71
1
vote
1 answer

android Editing contact programmatically

I'm trying to edit contact details programmatically. I want to change the contact name having the phone number is equal to 123. Here is my Non working code. Uri lookupUri = Uri.withAppendedPath(ContactsContract.PhoneLookup.CONTENT_FILTER_URI,…
Disha Shukla
  • 133
  • 1
  • 11
1
vote
0 answers

What SQL is used to query with numbers converted to letters

Slightly complicated phrasing, so apologies, but here is the situation. On my phone, I go to the dial screen and a keypad pops up. I type: "728". Near the top of the list are names like Patrick lastNameson and Paul otherLastNameson. Clearly, the 728…
PGMacDesign
  • 6,092
  • 8
  • 41
  • 78
1
vote
1 answer

What is PICK_CONTACT argument in startActivityForResult function?

I have an Android Dialer App in which I want to open contacts. I took the code from Stack Overflow itself. But there is an argument in the startActivityForResult function, PICK_CONTACT. It is showing error. else if(id == R.id.action_contacts){ …
Aman Vangani
  • 175
  • 1
  • 1
  • 9
1
vote
1 answer

Displaying contacts in android listview

Here i am using the below code to display contacts in my application.It is displaying only one contact.the contact which is there in the last position is displayed..How to display all contacts..can anyone tell me how to display all the contacts.?I…
sunil y
  • 343
  • 3
  • 9
  • 29
1
vote
2 answers

Android : How to store address into native Contact app from our app

In android native contact app, some mobiles have single address field called Address. some mobiles have multiple fields like street, city, state, country, zip code. just I want to know how can I store address into the native app from our app. And…
android
  • 43
  • 8