PackageManager.AddPackageToPreferred(String) Method
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
deprecated
This member is deprecated.
[Android.Runtime.Register("addPackageToPreferred", "(Ljava/lang/String;)V", "GetAddPackageToPreferred_Ljava_lang_String_Handler")]
[System.Obsolete("deprecated")]
public abstract void AddPackageToPreferred (string packageName);
[<Android.Runtime.Register("addPackageToPreferred", "(Ljava/lang/String;)V", "GetAddPackageToPreferred_Ljava_lang_String_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member AddPackageToPreferred : string -> unit
Parameters
- packageName
- String
- Attributes
Remarks
This member is deprecated. This function no longer does anything. It is the platform's responsibility to assign preferred activities and this cannot be modified directly. To determine the activities resolved by the platform, use #resolveActivity
or #queryIntentActivities
. To configure an app to be responsible for a particular role and to check current role holders, see android.app.role.RoleManager
.
Java documentation for android.content.pm.PackageManager.addPackageToPreferred(java.lang.String)
.
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.