Home | History | Annotate | Download | only in nfc

Lines Matching refs:Tag

37      * Intent to start an activity when a tag is discovered.
43 * Mandatory Tag extra for the ACTION_TAG intents.
46 public static final String EXTRA_TAG = "android.nfc.extra.TAG";
54 * Optional byte[] extra for the tag identifier.
130 * Tag Reader Discovery mode
145 * Card Emulation mode Enables the manager to act as an NFC tag. Provided
149 * with a tag.
157 private static final String TAG = "NFC";
181 Log.e(TAG, "Cannot get package manager, assuming no NFC feature");
187 Log.e(TAG, "Package manager query failed, assuming no NFC feature", e);
218 Log.v(TAG, "this device does not have NFC support");
224 Log.e(TAG, "could not retrieve NFC service");
235 Log.e(TAG, "NFC service dead - attempting to recover", e);
238 Log.e(TAG, "could not retrieve NFC service during service recovery");
251 * turn on NFC tag discovery in Settings.
304 * Create a raw tag connection to the default Target
308 public RawTagConnection createRawTagConnection(Tag tag) {
309 if (tag.mServiceHandle == 0) {
310 throw new IllegalArgumentException("mock tag cannot be used for connections");
313 return new RawTagConnection(this, tag);
321 * Create a raw tag connection to the specified Target
325 public RawTagConnection createRawTagConnection(Tag tag, String target) {
326 if (tag.mServiceHandle == 0) {
327 throw new IllegalArgumentException("mock tag cannot be used for connections");
330 return new RawTagConnection(this, tag, target);
338 * Create an NDEF tag connection to the default Target
342 public NdefTagConnection createNdefTagConnection(NdefTag tag) {
343 if (tag.mServiceHandle == 0) {
344 throw new IllegalArgumentException("mock tag cannot be used for connections");
347 return new NdefTagConnection(this, tag);
355 * Create an NDEF tag connection to the specified Target
359 public NdefTagConnection createNdefTagConnection(NdefTag tag, String target) {
360 if (tag.mServiceHandle == 0) {
361 throw new IllegalArgumentException("mock tag cannot be used for connections");
364 return new NdefTagConnection(this, tag, target);