Condividi tramite


Intent.ActionConfigurationChanged Field

Definition

Broadcast Action: The current device android.content.res.Configuration (orientation, locale, etc) has changed.

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

Field Value

Implements

Attributes

Remarks

Broadcast Action: The current device android.content.res.Configuration (orientation, locale, etc) has changed. When such a change happens, the UIs (view hierarchy) will need to be rebuilt based on this new information; for the most part, applications don't need to worry about this, because the system will take care of stopping and restarting the application to make sure it sees the new changes. Some system code that can not be restarted will need to watch for this action and handle it appropriately.

<p class="note"> You <em>cannot</em> receive this through components declared in manifests, only by explicitly registering for it with Context#registerReceiver(BroadcastReceiver, IntentFilter) Context.registerReceiver().

<p class="note">This is a protected intent that can only be sent by the system.

Java documentation for android.content.Intent.ACTION_CONFIGURATION_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

See also