I have two apps on two Android devices, similar to CardEmulation and CardReader from the samples for NFC.
I want to send data from the host card emulation app running on one Android device to the reader application running on the second Android device. This works when both apps are open in foreground.
But if I close the reader application, I can no longer send data to it. Instead, when the two phones are held together, they activate Beam transmission. However, I would like to have the reader phone automatically start the reader app when the two phones are held together.
So question is:
Can I send data from the HCE app so that the reader receives a
TECH_DISCOVERED
intent when the device are put close to eachother? (We don't want the additional acceptance click for Beam mode.)If that's not possible, can the
HostApduService
send data so that the reader receives anNDEF_DISCOVERED
intent?