Support for NDEF on iCODE.
Change-Id: I9ce2ee5e739d34a9047ca494315cbc54b30fefb8
This commit is contained in:
@@ -103,6 +103,8 @@ public final class Ndef extends BasicTagTechnology {
|
|||||||
public static final int TYPE_4 = 4;
|
public static final int TYPE_4 = 4;
|
||||||
/** @hide */
|
/** @hide */
|
||||||
public static final int TYPE_MIFARE_CLASSIC = 101;
|
public static final int TYPE_MIFARE_CLASSIC = 101;
|
||||||
|
/** @hide */
|
||||||
|
public static final int TYPE_ICODE_SLI = 102;
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
public static final String UNKNOWN = "android.ndef.unknown";
|
public static final String UNKNOWN = "android.ndef.unknown";
|
||||||
@@ -117,6 +119,11 @@ public final class Ndef extends BasicTagTechnology {
|
|||||||
public static final String NFC_FORUM_TYPE_4 = "org.nfcforum.ndef.type4";
|
public static final String NFC_FORUM_TYPE_4 = "org.nfcforum.ndef.type4";
|
||||||
/** NDEF on MIFARE Classic */
|
/** NDEF on MIFARE Classic */
|
||||||
public static final String MIFARE_CLASSIC = "com.nxp.ndef.mifareclassic";
|
public static final String MIFARE_CLASSIC = "com.nxp.ndef.mifareclassic";
|
||||||
|
/**
|
||||||
|
* NDEF on iCODE SLI
|
||||||
|
* @hide
|
||||||
|
*/
|
||||||
|
public static final String ICODE_SLI = "com.nxp.ndef.icodesli";
|
||||||
|
|
||||||
private final int mMaxNdefSize;
|
private final int mMaxNdefSize;
|
||||||
private final int mCardState;
|
private final int mCardState;
|
||||||
@@ -200,6 +207,8 @@ public final class Ndef extends BasicTagTechnology {
|
|||||||
return NFC_FORUM_TYPE_4;
|
return NFC_FORUM_TYPE_4;
|
||||||
case TYPE_MIFARE_CLASSIC:
|
case TYPE_MIFARE_CLASSIC:
|
||||||
return MIFARE_CLASSIC;
|
return MIFARE_CLASSIC;
|
||||||
|
case TYPE_ICODE_SLI:
|
||||||
|
return ICODE_SLI;
|
||||||
default:
|
default:
|
||||||
return UNKNOWN;
|
return UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user