Skip to content

Most visited

Recently visited

navigation

BlockedNumberContract.BlockedNumbers

public static class BlockedNumberContract.BlockedNumbers
extends Object

java.lang.Object
   ↳ android.provider.BlockedNumberContract.BlockedNumbers


Constants to interact with the blocked numbers list.

Summary

Constants

String COLUMN_E164_NUMBER

Phone number to block.

String COLUMN_ID

Auto-generated ID field which monotonically increases.

String COLUMN_ORIGINAL_NUMBER

Phone number to block.

String CONTENT_ITEM_TYPE

The MIME type of a blocked phone number under CONTENT_URI.

String CONTENT_TYPE

The MIME type of CONTENT_URI itself providing a directory of blocked phone numbers.

Fields

public static final Uri CONTENT_URI

Content URI for the blocked numbers.

Inherited methods

From class java.lang.Object

Constants

COLUMN_E164_NUMBER

added in API level 24
String COLUMN_E164_NUMBER

Phone number to block. The system generates it from COLUMN_ORIGINAL_NUMBER by removing all formatting characters.

Optional in insert. When not specified, the system tries to generate it assuming the current country. (Which will still be null if the number is not valid.)

TYPE: String

Constant Value: "e164_number"

COLUMN_ID

added in API level 24
String COLUMN_ID

Auto-generated ID field which monotonically increases.

TYPE: long

Constant Value: "_id"

COLUMN_ORIGINAL_NUMBER

added in API level 24
String COLUMN_ORIGINAL_NUMBER

Phone number to block.

Must be specified in insert.

TYPE: String

Constant Value: "original_number"

CONTENT_ITEM_TYPE

added in API level 24
String CONTENT_ITEM_TYPE

The MIME type of a blocked phone number under CONTENT_URI.

Constant Value: "vnd.android.cursor.item/blocked_number"

CONTENT_TYPE

added in API level 24
String CONTENT_TYPE

The MIME type of CONTENT_URI itself providing a directory of blocked phone numbers.

Constant Value: "vnd.android.cursor.dir/blocked_number"

Fields

CONTENT_URI

added in API level 24
Uri CONTENT_URI

Content URI for the blocked numbers.

Supported operations

blocked

  • query
  • delete
  • insert

blocked/ID

  • query (selection is not supported)
  • delete (selection is not supported)

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)