Lines Matching refs:ndef
26 import android.nfc.tech.Ndef;
34 * {@link TagTester} for NDEF tags. It writes a semi-random NDEF tag with a random id but
43 private static final String PAYLOAD = "CTS Verifier NDEF Tag";
55 if (tech.equals(Ndef.class.getName())) {
56 Ndef ndef = Ndef.get(tag);
57 return ndef != null && ndef.isWritable();
108 Ndef ndef = null;
110 ndef = Ndef.get(tag);
111 ndef.connect();
112 ndef.writeNdefMessage(message);
114 if (ndef != null) {
116 ndef.close();
118 Log.e(TAG, "IOException while closing NDEF...", e);
125 Ndef ndef = null;
127 ndef = Ndef.get(tag);
128 if (ndef != null) {
129 ndef.connect();
130 return ndef.getNdefMessage();
133 if (ndef != null) {
135 ndef.close();
137 Log.e(TAG, "Error closing Ndef...", e);