FAQ Database Discussion Community


Sort Contacts into Smart Group if Company Box is Checked

osx,applescript,contacts,osx-mountain-lion
I found an Applescript at apple's support site to sort any contact with the "Company" checkmark checked into a "Business" group: property groupName : "Business" tell application "Contacts" if (name of groups as list) does not contain groupName then make new group at end of groups with properties {name:groupName} end...

Fetching all images from ABAddressBook crashes due to memory pressure

ios,objective-c,contacts,addressbook,abaddressbook
I'm querying all persons from the IOS address book and store their image in a local cache. Everything works fine for small address books - however a lot of entries (>1000) crash the app due to memory pressure. After investigating the issue it seems that the ABPersonCopyImageData allocates memory for...

Android - How to get saved contact id

android,contacts,android-contacts,contactscontract
I want to get saved contact id and i used following way to retrieve it but the problem is it's returning the wrong id. public static String addContact(FragmentActivity activity, String displayname, String mobilenumber, String homeemail) { String DisplayName = displayname; String MobileNumber = mobilenumber; String homeemailID = homeemail; int contactID...

How can i delete multiple address book contacts in iOS programmatically? [duplicate]

ios,iphone,contacts,addressbook
This question already has an answer here: How to delete a contact from address book in iPhone using objective-c? 3 answers Hi i have a requirement to show all address book contacts in tableview. if the user wants to select the multiple contacts delete those selected contacts.for this i...

How can I add a “tag” to a contact?

android,mobile,contacts
I've got a fragment with a listView that displays the native contact list. The project has a feature that allows the user to add a "tag" to a contact (list item has 2 textViews, one with the name and the other one with the tag, i.e. "John Smith", "Dentist"). Any...

Send inquiry on specific price list

jquery,html,css,contacts
I'm building website which will include table with price lists. Now i want to create a code, which will open a new pop up window so that user can send inquiry about specific prices. I have created a dropdown list with plans, and a popup button. When user selects specific...

Adding new connection to existing android contact

android,sync,contacts
gyus. I'm trying to add a connection to an existing contact, like viber does: It was pretty simple to add a contact with such connection following nemezis repo, but I haven't managed to update a contact in order to add a connection. I have tried: ops.add(ContentProviderOperation.newUpdate(addCallerIsSyncAdapterParameter(Data.CONTENT_URI, true)) .withSelection(Data.RAW_CONTACT_ID + "=...

How do you specify URLs for Contact.photos?

cordova,phonegap-plugins,contacts,android-contacts,cordova-plugins
https://github.com/apache/cordova-plugin-contacts#contact Where can I put the image file (eg can I have it on S3, or shipped with the app in the resources), and what is the correct format for the URL? var contact = navigator.contacts.create(); contact.photos = [new ContactField('url', URL, true)]; contact.save() ...

SectionIndexer shifted in mock contacts app

android,scroll,android-arrayadapter,contacts,sectionindexer
EDIT: Solution at bottom of post. I am creating a contact screen for an android app where I want to be able to scroll through my phones contacts. I am able to import the phones contacts, use a custom arrayadapter to organize my information, and enable the fastscroll option for...

Android contact list picker

java,android,contacts,addressbook
I have 2 activities: the first - is just an opening page and it has a button that goes to the second activity the second activity - will open up the contact list and will allow the user to pick contacts and retrieve their numbers - they will be saved...

iOS: dispatch_get_global_queue QOS_CLASS_BACKGROUND crashes on 7.1.2

ios,objective-c,contacts
I have following snippets of code that fetches contacts by using block: if (&ABAddressBookCreateWithOptions != NULL) { CFErrorRef error = nil; addressBook = ABAddressBookCreateWithOptions(NULL, &error); ABAddressBookRequestAccessWithCompletion(addressBook, ^(bool granted, CFErrorRef error) { dispatch_sync(dispatch_get_main_queue(), ^{ if (error) { //... } else if (!granted) { //... } else { // access granted //......

Permission Denial when trying to access contacts in Android

java,android,permissions,contacts
I am trying to access the contacts on the device and later display them in a list, however when I try to access them with a cursor, I get an error that I'm missing permissions for READ_CONTACTS but I have already gave permissions in my AndroidManifest.xml Code where I access...

is it normal behaviour for an iOS app to go back to its home screen when users make a change to privacy settings?

ios,contacts,privacy
My iOS app need full access to the users contact for certain functions. If the user refuses this access and later tries to access one of those functions I put up an alert that tells them they need to give permission and the option to go to the settings by...

cocoa osx mac pick contact from address book

osx,cocoa,import,contacts,abaddressbook
In my application for mac I want to pick or import contacts from the address book list. I watched many post but are only for iOS. I know that in iOS you can display the contact list like this: _addressBookController = [[ABPeoplePickerNavigationController alloc] init]; [_addressBookController setPeoplePickerDelegate:self]; [self presentViewController:_addressBookController animated:YES completion:nil];...

How do implicit joined columns work with Android contacts data?

android,android-contentprovider,contacts,android-contacts,contactscontract
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 android.provider.ContactsContract.CommonDataKinds.Phone; import android.provider.ContactsContract.Data; ... String[] projection = { Phone.DELETED, Phone.LOOKUP_KEY, Phone.NUMBER, Phone.TYPE, Phone.LABEL, Data.MIMETYPE, Data.DISPLAY_NAME_PRIMARY }; // "mimetype = ? AND deleted = ?"...

iOS - programatically rejecting permission to contacts (after user has accepted)

ios,events,permissions,calendar,contacts
Is there a way to programatically reject/disable/disallow/reject permissions to access the calendar? I'm using the following code to ask for / determine permissions: //request access [[MyCalendarUtil sharedManager] requestAccess:^(BOOL granted, NSError *error) { /* This code will run when uses has made his/her choice */ if(error) { // display error message...

how to keep displaying the selected contacts android

java,android,listview,contacts,highlight
so I've created a list view in my xml file which just has the simple id/list property. In my class, I've set the name and number parameters in from the ContactsContracts class. I've got 2 questions, First is when I click a number/name it should be highlighted and be selected...

How to delete my contact using a dialog?

android,dialog,alert,contacts,android-contacts
What I'm trying here is I want to long press the number that I select and it will pop-up an alert dialog that ask me to delete. If I press Ok it will be deleted. I'm new here, I'm new in android I just want it know if it's possible...

Android contact image placeholder in listview

android,file,uri,contacts,android-contacts
I have an activity with a listview and a custom adapter. Retrieving the contact information and the image is not the problem. I can not display an alternative image if there is not one for the contact. Checking if the URI is NULL does not work for me. I am...