Nency
Nency

Reputation: 502

Mark existing contact as Favourite or Starred?

How do I, via code, mark an existing contact as Favourite or Starred?

Upvotes: 0

Views: 1683

Answers (1)

Tim Malseed
Tim Malseed

Reputation: 6353

If you don't mean programmatically, just go to 'people', then click on the contact who you want to favourite. Then simply click on the star in the top right corner. This is how I do it in android ICS. See this link: http://www.androidcentral.com/android-101-favoriting-and-un-favoriting-contacts

Programmatically, there is a column in the contacts provider called "STARRED". To make a specific contact a favourite, you would have to change this value to 1.

There is a similar question here: How to update starred value of a contact in android using ContactsContract URI

For more information on the contacts content provider, see http://developer.android.com/reference/android/provider/ContactsContract.Contacts.html

Upvotes: 4

Related Questions