Sdílet prostřednictvím


ContactsContract.Intents.ContactsDatabaseCreated Field

Definition

This is the intent that is fired when the contacts database is created.

[Android.Runtime.Register("CONTACTS_DATABASE_CREATED")]
public const string ContactsDatabaseCreated;
[<Android.Runtime.Register("CONTACTS_DATABASE_CREATED")>]
val mutable ContactsDatabaseCreated : string

Field Value

Attributes

Remarks

This is the intent that is fired when the contacts database is created.

The READ_CONTACT permission is required to receive these broadcasts.

Because this is an implicit broadcast, apps targeting Android O will no longer receive this broadcast via a manifest broadcast receiver. (Broadcast receivers registered at runtime with Context#registerReceiver(BroadcastReceiver, IntentFilter) will still receive it.) Instead, an app can use ProviderStatus#DATABASE_CREATION_TIMESTAMP to see if the contacts database has been initialized when it starts.

Java documentation for android.provider.ContactsContract.Intents.CONTACTS_DATABASE_CREATED.

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