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?

Was it helpful?

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.

http://www.java2s.com/Open-Source/Android/android-platform-apps/Tag/com/android/apps/tagcanon/TagCanon.java.htm

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
scroll top