Example usage for android.provider ContactsContract STREQUENT_PHONE_ONLY

List of usage examples for android.provider ContactsContract STREQUENT_PHONE_ONLY

Introduction

In this page you can find the example usage for android.provider ContactsContract STREQUENT_PHONE_ONLY.

Prototype

String STREQUENT_PHONE_ONLY

To view the source code for android.provider ContactsContract STREQUENT_PHONE_ONLY.

Click Source Link

Document

A boolean parameter for Contacts#CONTENT_STREQUENT_URI and Contacts#CONTENT_STREQUENT_FILTER_URI , which requires the ContactsProvider to return only phone-related results.

Usage

From source file:com.silentcircle.contacts.ContactTileLoaderFactory.java

public static CursorLoader createStrequentPhoneOnlyLoader(Context context) {
    Uri uri = Contacts.CONTENT_STREQUENT_URI.buildUpon()
            .appendQueryParameter(ContactsContract.STREQUENT_PHONE_ONLY, "true").build();

    return new CursorLoader(context, uri, COLUMNS_PHONE_ONLY, null, null, null);
}