Stay organized with collections
Save and categorize content based on your preferences.
public
static
final
class
ContactsContract.ProviderStatus
extends Object
API for inquiring about the general status of the provider.
Summary
Fields |
public
static
final
Uri |
CONTENT_URI
The content:// style URI for this table.
|
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
CONTENT_TYPE
public static final String CONTENT_TYPE
The MIME-type of CONTENT_URI
providing a directory of
settings.
Constant Value:
"vnd.android.cursor.dir/provider_status"
DATABASE_CREATION_TIMESTAMP
public static final String DATABASE_CREATION_TIMESTAMP
Timestamp (milliseconds since epoch) of when the provider's database was created.
Type: long
Constant Value:
"database_creation_timestamp"
STATUS
public static final String STATUS
An integer representing the current status of the provider.
Constant Value:
"status"
STATUS_BUSY
public static final int STATUS_BUSY
The provider won't respond to queries. It is in the middle of a long running task, such
as a database upgrade or locale change.
Constant Value:
1
(0x00000001)
STATUS_EMPTY
public static final int STATUS_EMPTY
The status that indicates that there are no accounts and no contacts
on the device.
Constant Value:
2
(0x00000002)
STATUS_NORMAL
public static final int STATUS_NORMAL
Default status of the provider.
Constant Value:
0
(0x00000000)
Fields
CONTENT_URI
public static final Uri CONTENT_URI
The content:// style URI for this table. Requests to this URI can be
performed on the UI thread because they are always unblocking.
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,["# ContactsContract.ProviderStatus\n\nAdded in [API level 23](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Constants](#constants) \\| [Fields](#lfields) \\| [Inherited Methods](#inhmethods) \n\nContactsContract.ProviderStatus\n===============================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/provider/ContactsContract.ProviderStatus \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\nfinal\n\nclass\nContactsContract.ProviderStatus\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.ContactsContract.ProviderStatus |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAPI for inquiring about the general status of the provider.\n\nSummary\n-------\n\n| ### Constants ||\n|---------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [String](/reference/java/lang/String) | [CONTENT_TYPE](/reference/android/provider/ContactsContract.ProviderStatus#CONTENT_TYPE) The MIME-type of [CONTENT_URI](/reference/android/provider/ContactsContract.ProviderStatus#CONTENT_URI) providing a directory of settings. |\n| [String](/reference/java/lang/String) | [DATABASE_CREATION_TIMESTAMP](/reference/android/provider/ContactsContract.ProviderStatus#DATABASE_CREATION_TIMESTAMP) Timestamp (milliseconds since epoch) of when the provider's database was created. |\n| [String](/reference/java/lang/String) | [STATUS](/reference/android/provider/ContactsContract.ProviderStatus#STATUS) An integer representing the current status of the provider. |\n| `int` | [STATUS_BUSY](/reference/android/provider/ContactsContract.ProviderStatus#STATUS_BUSY) The provider won't respond to queries. |\n| `int` | [STATUS_EMPTY](/reference/android/provider/ContactsContract.ProviderStatus#STATUS_EMPTY) The status that indicates that there are no accounts and no contacts on the device. |\n| `int` | [STATUS_NORMAL](/reference/android/provider/ContactsContract.ProviderStatus#STATUS_NORMAL) Default status of the provider. |\n\n| ### Fields ||\n|----------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------|\n| ` public static final `[Uri](/reference/android/net/Uri) | [CONTENT_URI](/reference/android/provider/ContactsContract.ProviderStatus#CONTENT_URI) The content:// style URI for this table. |\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### CONTENT_TYPE\n\nAdded in [API level 23](/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/ContactsContract.ProviderStatus#CONTENT_URI) providing a directory of\nsettings.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"vnd.android.cursor.dir/provider_status\"\n\n\n### DATABASE_CREATION_TIMESTAMP\n\nAdded in [API level 26](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String DATABASE_CREATION_TIMESTAMP\n```\n\nTimestamp (milliseconds since epoch) of when the provider's database was created.\n\nType: long\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"database_creation_timestamp\"\n\n\n### STATUS\n\nAdded in [API level 23](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String STATUS\n```\n\nAn integer representing the current status of the provider.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"status\"\n\n\n### STATUS_BUSY\n\nAdded in [API level 23](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int STATUS_BUSY\n```\n\nThe provider won't respond to queries. It is in the middle of a long running task, such\nas a database upgrade or locale change.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n1\n(0x00000001)\n\n\n### STATUS_EMPTY\n\nAdded in [API level 23](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int STATUS_EMPTY\n```\n\nThe status that indicates that there are no accounts and no contacts\non the device.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n2\n(0x00000002)\n\n\n### STATUS_NORMAL\n\nAdded in [API level 23](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int STATUS_NORMAL\n```\n\nDefault status of the provider.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n0\n(0x00000000)\n\n\nFields\n------\n\n### CONTENT_URI\n\nAdded in [API level 23](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final Uri CONTENT_URI\n```\n\nThe content:// style URI for this table. Requests to this URI can be\nperformed on the UI thread because they are always unblocking.\n\n\u003cbr /\u003e"]]