Scott Main | c9f7890 | 2010-10-15 09:15:09 -0700 | [diff] [blame] | 1 | <HTML> |
| 2 | <BODY> |
Joe Fernandez | 3aef8e1d | 2011-12-20 10:38:34 -0800 | [diff] [blame] | 3 | <p>Provides access to Near Field Communication (NFC) functionality, allowing applications to read |
| 4 | NDEF message in NFC tags. A "tag" may actually be another device that appears as a tag.</p> |
| 5 | |
| 6 | <p>For more information, see the |
Scott Main | 9be0105 | 2012-06-22 12:35:08 -0700 | [diff] [blame] | 7 | <a href="{@docRoot}guide/topics/connectivity/nfc/index.html">Near Field Communication</a> guide.</p> |
Joe Fernandez | 3aef8e1d | 2011-12-20 10:38:34 -0800 | [diff] [blame] | 8 | {@more} |
Scott Main | c9f7890 | 2010-10-15 09:15:09 -0700 | [diff] [blame] | 9 | |
| 10 | <p>Here's a summary of the classes:</p> |
| 11 | |
| 12 | <dl> |
Nick Pelly | 50b4d8f | 2010-12-07 22:40:28 -0800 | [diff] [blame] | 13 | <dt>{@link android.nfc.NfcManager}</dt> |
| 14 | <dd>This is the high level manager, used to obtain this device's {@link android.nfc.NfcAdapter}. You can |
| 15 | acquire an instance using {@link android.content.Context#getSystemService}.</dd> |
Scott Main | c9f7890 | 2010-10-15 09:15:09 -0700 | [diff] [blame] | 16 | <dt>{@link android.nfc.NfcAdapter}</dt> |
| 17 | <dd>This represents the device's NFC adapter, which is your entry-point to performing NFC |
Nick Pelly | 50b4d8f | 2010-12-07 22:40:28 -0800 | [diff] [blame] | 18 | operations. You can acquire an instance with {@link android.nfc.NfcManager#getDefaultAdapter}, or |
| 19 | {@link android.nfc.NfcAdapter#getDefaultAdapter(android.content.Context)}.</dd> |
Scott Main | c9f7890 | 2010-10-15 09:15:09 -0700 | [diff] [blame] | 20 | <dt>{@link android.nfc.NdefMessage}</dt> |
| 21 | <dd>Represents an NDEF data message, which is the standard format in which "records" |
| 22 | carrying data are transmitted between devices and tags. Your application can receive these |
Nick Pelly | 11b075e | 2010-10-28 13:39:37 -0700 | [diff] [blame] | 23 | messages from an {@link android.nfc.NfcAdapter#ACTION_TAG_DISCOVERED} intent.</dd> |
Scott Main | c9f7890 | 2010-10-15 09:15:09 -0700 | [diff] [blame] | 24 | <dt>{@link android.nfc.NdefRecord}</dt> |
| 25 | <dd>Represents a record, which is delivered in a {@link android.nfc.NdefMessage} and describes the |
| 26 | type of data being shared and carries the data itself.</dd> |
| 27 | </dl> |
| 28 | |
| 29 | <p class="note"><strong>Note:</strong> |
| 30 | Not all Android-powered devices provide NFC functionality.</p> |
Joe Fernandez | 3aef8e1d | 2011-12-20 10:38:34 -0800 | [diff] [blame] | 31 | |
Scott Main | c9f7890 | 2010-10-15 09:15:09 -0700 | [diff] [blame] | 32 | </BODY> |
| 33 | </HTML> |