Android.Content.PM.PackageManager.GetApplicationEnabledSetting Method
Return the enabled setting for an application.

Syntax

[Android.Runtime.Register("getApplicationEnabledSetting", "(Ljava/lang/String;)I", "GetGetApplicationEnabledSetting_Ljava_lang_String_Handler")]
public abstract ComponentEnabledState GetApplicationEnabledSetting (string packageName)

Parameters

packageName
The package name of the application to retrieve.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif the named package does not exist.

Remarks

Return the enabled setting for an application. This returns the last value set by PackageManager.SetApplicationEnabledSetting(string, Android.Content.PM.ComponentEnabledState, Android.Content.PM.ComponentEnabledState); in most cases this value will be PackageManager.COMPONENT_ENABLED_STATE_DEFAULT since the value originally specified in the manifest has not been modified.

[Android Documentation]

Requirements

Namespace: Android.Content.PM
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1