Android.Nfc.NdefRecord.CreateApplicationRecord Method
Create a new Android Application Record (AAR).

Syntax

[Android.Runtime.Register("createApplicationRecord", "(Ljava/lang/String;)Landroid/nfc/NdefRecord;", "")]
public static NdefRecord CreateApplicationRecord (string packageName)

Parameters

packageName
Android package name

Returns

Documentation for this section has not yet been entered.

Remarks

Create a new Android Application Record (AAR).

This record indicates to other Android devices the package that should be used to handle the entire NDEF message. You can embed this record anywhere into your message to ensure that the intended package receives the message.

When an Android device dispatches an Android.Nfc.NdefMessage containing one or more Android application records, the applications contained in those records will be the preferred target for the NfcAdapter.ActionNdefDiscovered intent, in the order in which they appear in the message. This dispatch behavior was first added to Android in Ice Cream Sandwich.

If none of the applications have a are installed on the device, a Market link will be opened to the first application.

Note that Android application records do not overrule applications that have called NfcAdapter.EnableForegroundDispatch(Android.App.Activity, Android.App.PendingIntent, Android.App.PendingIntent, Android.App.PendingIntent).

[Android Documentation]

Requirements

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