java.lang.Object | |
↳ | android.provider.HtcUnionContact.ContactUtils |
Utilities for Contacts
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CALL_LOG_PROJECTION | The projection to use when querying the call log table | ||||||||||
EVENTS_PROJECTION | |||||||||||
EVENT_PROJECTION |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is used to add a new group
| |||||||||||
This method is used to add a contact to a group
| |||||||||||
This method is used to delete a specific contact
| |||||||||||
This method is used to delete a group
| |||||||||||
This method is used to delete a contact from a group
| |||||||||||
Obtain center crop bitmap
| |||||||||||
Obtain center crop bitmap
| |||||||||||
This method is used to get mail address only for this type of uri
| |||||||||||
This method is used to get the my contact bitmap
| |||||||||||
This method is used to get phone number only for this type of uri
| |||||||||||
Get the short representation of phone number type end with colon.
| |||||||||||
TODO This method is used to query contact's uri by full name
| |||||||||||
TODO This method is used to query contact's uri by full name
| |||||||||||
This method is deprecated.
Use the one in Phone_Contacts module instead
| |||||||||||
Generate a intent to view or edit my contact card.
| |||||||||||
Generate a intent to view or edit my contact card.
| |||||||||||
To query the emails of a give contact.
| |||||||||||
This method is used to query contacts by full name
| |||||||||||
This method is used to query contacts by number
| |||||||||||
Query the group name with specific group ID
| |||||||||||
This method is used to query which group the contact belongs to.
| |||||||||||
This method is used to query speciic group members
| |||||||||||
This method is used to query my contact info
| |||||||||||
This method is used to query contacts that are not belong to the specific group
| |||||||||||
This method is used to set specific contact photo
| |||||||||||
This method is used to set rington to a specfic contact
| |||||||||||
Update the existed group's name with the given name
| |||||||||||
This method is used to set the Contact Image to a image view
| |||||||||||
This method is used to set the Group Image to a image view
| |||||||||||
This method is used to set the my contact Image to a image view
| |||||||||||
This method is used to set the my contact Image to a image view
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
The projection to use when querying the call log table
This method is used to add a new group
This method is used to add a contact to a group
This method is used to delete a specific contact
This method is used to delete a group
This method is used to delete a contact from a group
Obtain center crop bitmap
filepath | the image file path |
---|---|
cropWidth | new image width |
cropHeight | new image height |
Obtain center crop bitmap
resolver | content resolver |
---|---|
uri | content uri |
cropWidth | new image width |
cropHeight | new image height |
This method is used to get mail address only for this type of uri
u | content://com.android.contacts/data/# |
---|
This method is used to get the my contact bitmap
r | the content resolver |
---|---|
contactId | the person ID |
This method is used to get phone number only for this type of uri
u | content://com.android.contacts/data/# |
---|
Get the short representation of phone number type end with colon. A performance version
type | The phone number type |
---|
TODO This method is used to query contact's uri by full name
TODO This method is used to query contact's uri by full name
This method is deprecated.
Use the one in Phone_Contacts module instead
@return
Generate a intent to view or edit my contact card. If my contact card information is non-set, return edit intent, otherwise, return view intent Need permission: "android.permission.READ_CONTACTS"
context | The content resolver context |
---|
Generate a intent to view or edit my contact card. If my contact card information is non-set, return edit intent, otherwise, return view intent
To query the emails of a give contact. Deprecated, please use com.htc.provider.ContactsContract.CommonDataKinds.Email.queryContactEmailAddresses
context | The context |
---|---|
person | The person's id |
This method is used to query contacts by full name
This method is used to query contacts by number
Query the group name with specific group ID
context | The context. Used to get the content resolver. |
---|
This method is used to query which group the contact belongs to.
This method is used to query speciic group members
This method is used to query my contact info
This method is used to query contacts that are not belong to the specific group
This method is used to set specific contact photo
This method is used to set rington to a specfic contact
Update the existed group's name with the given name
context | The context. Used to get the content resolver. |
---|---|
groupId | The target group ID |
name | The new name of specific group |
This method is used to set the Contact Image to a image view
This method is used to set the Group Image to a image view
This method is used to set the my contact Image to a image view
This method is used to set the my contact Image to a image view