Intent.ExtraReferrer Field

Definition

This extra can be used with any Intent used to launch an activity, supplying information about who is launching that activity.

[Android.Runtime.Register("EXTRA_REFERRER")]
public const string ExtraReferrer;
[<Android.Runtime.Register("EXTRA_REFERRER")>]
val mutable ExtraReferrer : string

Field Value

Implements

Attributes

Remarks

This extra can be used with any Intent used to launch an activity, supplying information about who is launching that activity. This field contains a android.net.Uri object, typically an http: or https: URI of the web site that the referral came from; it can also use the #URI_ANDROID_APP_SCHEME android-app: scheme to identify a native application that it came from.

To retrieve this value in a client, use android.app.Activity#getReferrer instead of directly retrieving the extra. It is also valid for applications to instead supply #EXTRA_REFERRER_NAME for cases where they can only create a string, not a Uri; the field here, if supplied, will always take precedence, however.

Java documentation for android.content.Intent.EXTRA_REFERRER.

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

See also