ActivityInfo.ConfigResourcesUnused Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This constant will be removed in the future version. Use Android.Content.PM.ConfigChanges enum directly instead of this field.
This is probably not the constant you want, the resources compiler supports a less dangerous version of it, 'allKnown', that only suppresses all currently existing configuration change restarts depending on your target SDK rather than whatever the latest SDK supports, allowing the application to work with resources on future Platform versions.
[Android.Runtime.Register("CONFIG_RESOURCES_UNUSED", ApiSince=36)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Content.PM.ConfigChanges enum directly instead of this field.", true)]
public const Android.Content.PM.ConfigChanges ConfigResourcesUnused = 134217728;
[<Android.Runtime.Register("CONFIG_RESOURCES_UNUSED", ApiSince=36)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.PM.ConfigChanges enum directly instead of this field.", true)>]
val mutable ConfigResourcesUnused : Android.Content.PM.ConfigChanges
Field Value
Value = 134217728Implements
- Attributes
Remarks
This is probably not the constant you want, the resources compiler supports a less dangerous version of it, 'allKnown', that only suppresses all currently existing configuration change restarts depending on your target SDK rather than whatever the latest SDK supports, allowing the application to work with resources on future Platform versions.
Bit in #configChanges
that indicates that the activity doesn't use Android Resources at all and doesn't need to be restarted on any configuration changes. This bit disables all restarts for configuration dimensions available in the current target SDK as well as dimensions introduced in future SDKs. Use it only if the activity doesn't need anything from its resources, and doesn't depend on any libraries that may provide resources and need to respond to configuration changes. When set, Activity#onConfigurationChanged(Configuration)
will be called instead of a restart, and it’s up to the implementation to ensure that no stale resource values remain loaded anywhere in the code.
This overrides all other bits, and this is recommended to be used individually.
This is not a core resource configuration, but a higher-level value, so its constant starts at the high bits.
Java documentation for android.content.pm.ActivityInfo.CONFIG_RESOURCES_UNUSED
.
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.