Android Guides | Samples

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

Parameters

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

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