Android.Content.Intent.SetPackage Method
(Usually optional) Set an explicit application package name that limits the components this Intent will resolve to.

Syntax

[Android.Runtime.Register("setPackage", "(Ljava/lang/String;)Landroid/content/Intent;", "GetSetPackage_Ljava_lang_String_Handler")]
public virtual Intent SetPackage (string packageName)

See Also

Intent.Package
Intent.ResolveActivity(Android.Content.PM.PackageManager)

Parameters

packageName
The name of the application package to handle the intent, or null to allow any application package.

Returns

Documentation for this section has not yet been entered.

Remarks

(Usually optional) Set an explicit application package name that limits the components this Intent will resolve to. If left to the default value of null, all components in all applications will considered. If non-null, the Intent can only match the components in the given application package.

[Android Documentation]

Requirements

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