Intent.ActionProviderChanged Field

Definition

Broadcast Action: Some content providers have parts of their namespace where they publish new events or items that the user may be especially interested in.

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

Field Value

Implements

Attributes

Remarks

Broadcast Action: Some content providers have parts of their namespace where they publish new events or items that the user may be especially interested in. For these things, they may broadcast this action when the set of interesting items change.

For example, GmailProvider sends this notification when the set of unread mail in the inbox changes.

The data of the intent identifies which part of which provider changed. When queried through the content resolver, the data URI will return the data set in question.

The intent will have the following extra values: <ul> <li><em>count</em> - The number of items in the data set. This is the same as the number of items in the cursor returned by querying the data URI. </li> </ul>

This intent will be sent at boot (if the count is non-zero) and when the data set changes. It is possible for the data set to change without the count changing (for example, if a new unread message arrives in the same sync operation in which a message is archived). The phone should still ring/vibrate/etc as normal in this case.

Java documentation for android.content.Intent.ACTION_PROVIDER_CHANGED.

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