Stay organized with collections
Save and categorize content based on your preferences.
BlockedNumberContract.BlockedNumbers
public
static
class
BlockedNumberContract.BlockedNumbers
extends Object
Constants to interact with the blocked numbers list.
Summary
Fields |
public
static
final
Uri |
CONTENT_URI
Content URI for the blocked numbers.
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeoutMillis, int nanos)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait(long timeoutMillis)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted.
|
|
Constants
COLUMN_E164_NUMBER
public static final 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
public static final String COLUMN_ID
Auto-generated ID field which monotonically increases.
TYPE: long
Constant Value:
"_id"
COLUMN_ORIGINAL_NUMBER
public static final String COLUMN_ORIGINAL_NUMBER
Phone number to block.
Must be specified in insert
.
TYPE: String
Constant Value:
"original_number"
CONTENT_ITEM_TYPE
public static final 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
public static final 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
public static final Uri CONTENT_URI
Content URI for the blocked numbers.
Supported operations
blocked
blocked/ID
- query (selection is not supported)
- delete (selection is not supported)
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# BlockedNumberContract.BlockedNumbers\n\nAdded in [API level 24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Constants](#constants) \\| [Fields](#lfields) \\| [Inherited Methods](#inhmethods) \n\nBlockedNumberContract.BlockedNumbers\n====================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/provider/BlockedNumberContract.BlockedNumbers \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\nclass\nBlockedNumberContract.BlockedNumbers\n`\n\n\n`\n\nextends `[Object](/reference/java/lang/Object)`\n\n\n`\n\n`\n\n\n`\n\n|---|-------------------------------------------------------|\n| [java.lang.Object](/reference/java/lang/Object) ||\n| ↳ | android.provider.BlockedNumberContract.BlockedNumbers |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nConstants to interact with the blocked numbers list.\n\nSummary\n-------\n\n| ### Constants ||\n|---------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [String](/reference/java/lang/String) | [COLUMN_E164_NUMBER](/reference/android/provider/BlockedNumberContract.BlockedNumbers#COLUMN_E164_NUMBER) Phone number to block. |\n| [String](/reference/java/lang/String) | [COLUMN_ID](/reference/android/provider/BlockedNumberContract.BlockedNumbers#COLUMN_ID) Auto-generated ID field which monotonically increases. |\n| [String](/reference/java/lang/String) | [COLUMN_ORIGINAL_NUMBER](/reference/android/provider/BlockedNumberContract.BlockedNumbers#COLUMN_ORIGINAL_NUMBER) Phone number to block. |\n| [String](/reference/java/lang/String) | [CONTENT_ITEM_TYPE](/reference/android/provider/BlockedNumberContract.BlockedNumbers#CONTENT_ITEM_TYPE) The MIME type of a blocked phone number under [CONTENT_URI](/reference/android/provider/BlockedNumberContract.BlockedNumbers#CONTENT_URI). |\n| [String](/reference/java/lang/String) | [CONTENT_TYPE](/reference/android/provider/BlockedNumberContract.BlockedNumbers#CONTENT_TYPE) The MIME type of [CONTENT_URI](/reference/android/provider/BlockedNumberContract.BlockedNumbers#CONTENT_URI) itself providing a directory of blocked phone numbers. |\n\n| ### Fields ||\n|----------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------|\n| ` public static final `[Uri](/reference/android/net/Uri) | [CONTENT_URI](/reference/android/provider/BlockedNumberContract.BlockedNumbers#CONTENT_URI) Content URI for the blocked numbers. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` `[java.lang.Object](/reference/java/lang/Object)` ` |---------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](/reference/java/lang/Object) | ` `[clone](/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object. | | ` boolean` | ` `[equals](/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](/reference/java/lang/Object)` obj) ` Indicates whether some other object is \"equal to\" this one. | | ` void` | ` `[finalize](/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final `[Class](/reference/java/lang/Class)`\u003c?\u003e` | ` `[getClass](/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this `Object`. | | ` int` | ` `[hashCode](/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object. | | ` final void` | ` `[notify](/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` `[notifyAll](/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor. | | ` `[String](/reference/java/lang/String) | ` `[toString](/reference/java/lang/Object#toString())`() ` Returns a string representation of the object. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||\n\nConstants\n---------\n\n### COLUMN_E164_NUMBER\n\nAdded in [API level 24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String COLUMN_E164_NUMBER\n```\n\nPhone number to block. The system generates it from [COLUMN_ORIGINAL_NUMBER](/reference/android/provider/BlockedNumberContract.BlockedNumbers#COLUMN_ORIGINAL_NUMBER)\nby removing all formatting characters.\n\nOptional in `insert`. When not specified, the system tries to generate it\nassuming the current country. (Which will still be null if the number is not valid.)\n\nTYPE: String\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"e164_number\"\n\n\n### COLUMN_ID\n\nAdded in [API level 24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String COLUMN_ID\n```\n\nAuto-generated ID field which monotonically increases.\n\nTYPE: long\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"_id\"\n\n\n### COLUMN_ORIGINAL_NUMBER\n\nAdded in [API level 24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String COLUMN_ORIGINAL_NUMBER\n```\n\nPhone number to block.\n\nMust be specified in `insert`.\n\nTYPE: String\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"original_number\"\n\n\n### CONTENT_ITEM_TYPE\n\nAdded in [API level 24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String CONTENT_ITEM_TYPE\n```\n\nThe MIME type of a blocked phone number under [CONTENT_URI](/reference/android/provider/BlockedNumberContract.BlockedNumbers#CONTENT_URI).\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"vnd.android.cursor.item/blocked_number\"\n\n\n### CONTENT_TYPE\n\nAdded in [API level 24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String CONTENT_TYPE\n```\n\nThe MIME type of [CONTENT_URI](/reference/android/provider/BlockedNumberContract.BlockedNumbers#CONTENT_URI) itself providing a directory of blocked phone\nnumbers.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"vnd.android.cursor.dir/blocked_number\"\n\n\nFields\n------\n\n### CONTENT_URI\n\nAdded in [API level 24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final Uri CONTENT_URI\n```\n\nContent URI for the blocked numbers.\n\n### Supported operations\n\nblocked\n\n- query\n- delete\n- insert\n\nblocked/ID\n\n- query (selection is not supported)\n- delete (selection is not supported)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]