am f46a9cf3: API to combine LOOKUP_KEY and Contacts._ID together.
Merge commit 'f46a9cf38207d03730c04d02cf40aa3859cd9ad3' into eclair-plus-aosp * commit 'f46a9cf38207d03730c04d02cf40aa3859cd9ad3': API to combine LOOKUP_KEY and Contacts._ID together.
This commit is contained in:
@@ -297,6 +297,15 @@ public final class ContactsContract {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build a {@link #CONTENT_LOOKUP_URI} lookup {@link Uri} using the
|
||||
* given {@link Contacts#_ID} and {@link Contacts#LOOKUP_KEY}.
|
||||
*/
|
||||
public static Uri getLookupUri(long contactId, String lookupKey) {
|
||||
return ContentUris.withAppendedId(Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI,
|
||||
lookupKey), contactId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Computes a content URI (see {@link #CONTENT_URI}) given a lookup URI.
|
||||
* <p>
|
||||
|
||||
Reference in New Issue
Block a user