Loading core/java/android/nfc/tech/NfcBarcode.java +22 −0 Original line number Diff line number Diff line Loading @@ -86,6 +86,28 @@ public final class NfcBarcode extends BasicTagTechnology { /** * Returns the barcode of an NfcBarcode tag. * * <p> Tags of {@link #TYPE_KOVIO} return 16 bytes: * <ul> * <p> The first byte is 0x80 ORd with a manufacturer ID, corresponding * to ISO/IEC 7816-6. * <p> The second byte describes the payload data format. Defined data * format types include the following:<ul> * <li>0x00: Reserved for manufacturer assignment</li> * <li>0x01: 96-bit URL with "http://www." prefix</li> * <li>0x02: 96-bit URL with "https://www." prefix</li> * <li>0x03: 96-bit URL with "http://" prefix</li> * <li>0x04: 96-bit URL with "https://" prefix</li> * <li>0x05: 96-bit GS1 EPC</li> * <li>0x06-0xFF: reserved</li> * </ul> * <p>The following 12 bytes are payload:<ul> * <li> In case of a URL payload, the payload is encoded in US-ASCII, * following the limitations defined in RF3987, * {@see http://www.ietf.org/rfc/rfc3987.txt}</li> * <li> In case of GS1 EPC daya, {@see http://www.gs1.org/gsmp/kc/epcglobal/tds/} * for more details.</li></ul> * <p>The last 2 bytes comprise the CRC. * </ul> * <p>Does not cause any RF activity and does not block. * * @return a byte array containing the barcode Loading core/java/android/nfc/tech/TagTechnology.java +1 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ import java.io.IOException; * <ul> * <li>{@link MifareClassic} * <li>{@link MifareUltralight} * <li>{@link NfcBarcode} * <li>{@link NdefFormatable} must only be enumerated on tags for which this Android device * is capable of formatting. Proprietary knowledge is often required to format a tag * to make it NDEF compatible. Loading Loading
core/java/android/nfc/tech/NfcBarcode.java +22 −0 Original line number Diff line number Diff line Loading @@ -86,6 +86,28 @@ public final class NfcBarcode extends BasicTagTechnology { /** * Returns the barcode of an NfcBarcode tag. * * <p> Tags of {@link #TYPE_KOVIO} return 16 bytes: * <ul> * <p> The first byte is 0x80 ORd with a manufacturer ID, corresponding * to ISO/IEC 7816-6. * <p> The second byte describes the payload data format. Defined data * format types include the following:<ul> * <li>0x00: Reserved for manufacturer assignment</li> * <li>0x01: 96-bit URL with "http://www." prefix</li> * <li>0x02: 96-bit URL with "https://www." prefix</li> * <li>0x03: 96-bit URL with "http://" prefix</li> * <li>0x04: 96-bit URL with "https://" prefix</li> * <li>0x05: 96-bit GS1 EPC</li> * <li>0x06-0xFF: reserved</li> * </ul> * <p>The following 12 bytes are payload:<ul> * <li> In case of a URL payload, the payload is encoded in US-ASCII, * following the limitations defined in RF3987, * {@see http://www.ietf.org/rfc/rfc3987.txt}</li> * <li> In case of GS1 EPC daya, {@see http://www.gs1.org/gsmp/kc/epcglobal/tds/} * for more details.</li></ul> * <p>The last 2 bytes comprise the CRC. * </ul> * <p>Does not cause any RF activity and does not block. * * @return a byte array containing the barcode Loading
core/java/android/nfc/tech/TagTechnology.java +1 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ import java.io.IOException; * <ul> * <li>{@link MifareClassic} * <li>{@link MifareUltralight} * <li>{@link NfcBarcode} * <li>{@link NdefFormatable} must only be enumerated on tags for which this Android device * is capable of formatting. Proprietary knowledge is often required to format a tag * to make it NDEF compatible. Loading