Freigeben über


PackageManager.GetInstalledApplications Method

Definition

Overloads

GetInstalledApplications(PackageInfoFlags)

Return a List of all application packages that are installed for the current user.

GetInstalledApplications(PackageManager+ApplicationInfoFlags)

GetInstalledApplications(PackageInfoFlags)

Return a List of all application packages that are installed for the current user.

[Android.Runtime.Register("getInstalledApplications", "(I)Ljava/util/List;", "GetGetInstalledApplications_IHandler")]
public abstract System.Collections.Generic.IList<Android.Content.PM.ApplicationInfo> GetInstalledApplications (Android.Content.PM.PackageInfoFlags flags);
[<Android.Runtime.Register("getInstalledApplications", "(I)Ljava/util/List;", "GetGetInstalledApplications_IHandler")>]
abstract member GetInstalledApplications : Android.Content.PM.PackageInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.ApplicationInfo>

Parameters

flags
PackageInfoFlags

Additional option flags to modify the data returned.

Returns

A List of ApplicationInfo objects, one for each installed application. In the unlikely case there are no installed packages, an empty list is returned. If flag MATCH_UNINSTALLED_PACKAGES is set, the application information is retrieved from the list of uninstalled applications (which includes installed applications as well as applications with data directory i.e. applications which had been deleted with DELETE_KEEP_DATA flag set).

Attributes

Remarks

Return a List of all application packages that are installed for the current user. If flag GET_UNINSTALLED_PACKAGES has been set, a list of all applications including those deleted with DELETE_KEEP_DATA (partially installed apps with data directory) will be returned.

Use #getInstalledApplications(ApplicationInfoFlags) when long flags are needed.

Java documentation for android.content.pm.PackageManager.getInstalledApplications(int).

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

GetInstalledApplications(PackageManager+ApplicationInfoFlags)

[Android.Runtime.Register("getInstalledApplications", "(Landroid/content/pm/PackageManager$ApplicationInfoFlags;)Ljava/util/List;", "GetGetInstalledApplications_Landroid_content_pm_PackageManager_ApplicationInfoFlags_Handler", ApiSince=33)]
public virtual System.Collections.Generic.IList<Android.Content.PM.ApplicationInfo> GetInstalledApplications (Android.Content.PM.PackageManager.ApplicationInfoFlags flags);
[<Android.Runtime.Register("getInstalledApplications", "(Landroid/content/pm/PackageManager$ApplicationInfoFlags;)Ljava/util/List;", "GetGetInstalledApplications_Landroid_content_pm_PackageManager_ApplicationInfoFlags_Handler", ApiSince=33)>]
abstract member GetInstalledApplications : Android.Content.PM.PackageManager.ApplicationInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.ApplicationInfo>
override this.GetInstalledApplications : Android.Content.PM.PackageManager.ApplicationInfoFlags -> System.Collections.Generic.IList<Android.Content.PM.ApplicationInfo>

Parameters

Returns

Attributes

Applies to