java.lang.Object | |
↳ | mobisocial.nfc.NdefFactory |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
RTD_ANDROID_APP | An RTD indicating an Android Application Record. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From Android SDK, version 14. | |||||||||||
Creates an NDEF message with a single text record, with the given
text content (UTF-8 encoded) and language code.
| |||||||||||
Creates an NDEF message with a single text record, with language
code "en" and the given text, encoded using UTF-8.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
An RTD indicating an Android Application Record.
From Android SDK, version 14. (C) 2010 The Android Open Source Project
Creates an Android application NDEF record.
This record indicates to other Android devices the package that should be used to handle the rest of the NDEF message. You can embed this record anywhere into your NDEF message to ensure that the intended package receives the message.
When an Android device dispatches an NdefMessage
containing one
or more Android application records, the applications contained in those
records will be the preferred target for the NDEF_DISCOVERED intent, in
the order in which they appear in the NdefMessage
. This dispatch
behavior was first added to Android in Ice Cream Sandwich.
If none of the applications 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.
packageName | Android package name |
---|
Creates an NDEF message with a single text record, with the given text content (UTF-8 encoded) and language code.
Creates an NDEF message with a single text record, with language code "en" and the given text, encoded using UTF-8.