Share via


ContactsContract.PhoneLookup.ContentFilterUri Property

Definition

The content:// style URI for this table.

[Android.Runtime.Register("CONTENT_FILTER_URI")]
public static Android.Net.Uri? ContentFilterUri { get; }
[<Android.Runtime.Register("CONTENT_FILTER_URI")>]
static member ContentFilterUri : Android.Net.Uri

Property Value

Uri
Attributes

Remarks

The content:// style URI for this table.

<p class="caution"><b>Caution: </b>If you publish your app to the Google Play Store, this field doesn't sort results based on contacts frequency. For more information, see the Contacts Provider page.

Append the phone number you want to lookup to this URI and query it to perform a lookup. For example:

Uri lookupUri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI,
                    Uri.encode(phoneNumber));

Java documentation for android.provider.ContactsContract.PhoneLookup.CONTENT_FILTER_URI.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to