0

I am trying to send NFC data from one Android device to another. I was able to do it successfully using the Andoid Beam functionality. But I would like the data transfer to take place automatically (bypassing Android Beam) as soon as both the devices are together.

Michael Roland
  • 39,663
  • 10
  • 99
  • 206
  • possible duplicate of [Making NFC/Beam more automatic](http://stackoverflow.com/questions/13542697/making-nfc-beam-more-automatic) – Michael Roland Feb 24 '15 at 19:48

1 Answers1

0

If one of your device have Android KitKat (4.4), there's a new feature in this version: https://developer.android.com/guide/topics/connectivity/nfc/hce.html

You could put one device in reader mode (default mode) and one device in card mode (card emulation).

LaurentY
  • 7,495
  • 3
  • 37
  • 55
  • then, without HCE and Beam UI touch, is there any way to transfer simple data between NFC enabled mobile with another same mobile like 4.4 and above ? enableForegroundDispatch , enableForegroundNdefPush , setNdefPushMessage. am using this methods for trying for the above. – harikrishnan Nov 24 '17 at 14:39
  • It's not possible 2 readers cannot communicate. You have to convert a reader in card emulation mode – LaurentY Nov 24 '17 at 16:51