Testing NFC or Beam using one device?
-
12-11-2019 - |
Question
I'm playing around with Beam and NFC but I only own one android device, is it possible to simulate or test the transmission with just one physical device?
Solution
You can theoretically do this by building an intent that a scanned tag would create and starting an activity with that intent. You would basically encapsulate the payload inside of an extra in the NDEF_DISCOVERED intent and try to start an activity with the intent. Check out this sample tag canon app.
OTHER TIPS
As far as I know you would need at least some NFC tags for testing NFC.
A second possiblity would be a NFC transponder (maybe cheaper than a second phone), but I do not have any experience on this til now.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow