Android.Content.PM.PackageManager.ClearPackagePreferredActivities Method
Remove all preferred activity mappings, previously added with PackageManager.AddPreferredActivity(Android.Content.IntentFilter, Android.Content.MatchResults, Android.Content.MatchResults, Android.Content.MatchResults), from the system whose activities are implemented in the given package name.

Syntax

[Android.Runtime.Register("clearPackagePreferredActivities", "(Ljava/lang/String;)V", "GetClearPackagePreferredActivities_Ljava_lang_String_Handler")]
public abstract void ClearPackagePreferredActivities (string packageName)

Parameters

packageName
The name of the package whose preferred activity mappings are to be removed.

Remarks

Remove all preferred activity mappings, previously added with PackageManager.AddPreferredActivity(Android.Content.IntentFilter, Android.Content.MatchResults, Android.Content.MatchResults, Android.Content.MatchResults), from the system whose activities are implemented in the given package name. An application can only clear its own package(s).

[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