Skip to content

Commit 0f74afb

Browse files
Jeff HamiltonAndroid (Google) Code Review
authored andcommitted
Merge "Remove Type X Tags from the top-level API." into gingerbread
2 parents f340d08 + 72df4ea commit 0f74afb

File tree

3 files changed

+5
-21
lines changed

3 files changed

+5
-21
lines changed

core/java/android/nfc/Tag.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,7 @@ public TagTechnology getTechnology(int tech) {
154154
case TagTechnology.NFC_V: {
155155
return new NfcV(adapter, this, extras);
156156
}
157-
case TagTechnology.MIFARE_CLASSIC_NDEF:
158-
case TagTechnology.TYPE_1:
159-
case TagTechnology.TYPE_2:
160-
case TagTechnology.TYPE_3:
161-
case TagTechnology.TYPE_4: {
157+
case TagTechnology.NDEF: {
162158
return new Ndef(adapter, this, tech, extras);
163159
}
164160
case TagTechnology.NFC_F: {

core/java/android/nfc/technology/Ndef.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ public final class Ndef extends BasicTagTechnology {
4444
public static final int NDEF_MODE_WRITE_MANY = 4;
4545
public static final int NDEF_MODE_UNKNOWN = 5;
4646

47+
/** @hide */
48+
public static final String EXTRA_NDEF_MSG = "ndefmsg";
49+
4750
/**
4851
* Internal constructor, to be used by NfcAdapter
4952
* @hide

core/java/android/nfc/technology/TagTechnology.java

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,7 @@ public interface TagTechnology {
4949
/**
5050
* This object is an instance of {@link Ndef}
5151
*/
52-
public static final int TYPE_1 = 101;
53-
54-
/**
55-
* This object is an instance of {@link Ndef}
56-
*/
57-
public static final int TYPE_2 = 102;
58-
59-
/**
60-
* This object is an instance of {@link Ndef}
61-
*/
62-
public static final int TYPE_3 = 103;
63-
64-
/**
65-
* This object is an instance of {@link Ndef}
66-
*/
67-
public static final int TYPE_4 = 104;
52+
public static final int NDEF = 101;
6853

6954
/**
7055
* This object is an instance of {@link NdefFormatable}

0 commit comments

Comments
 (0)