Anyone have examples of reading and writing NFC tags?
Pushed the code to the monodroid-samples up on GitHub. The code on Github has some comments and some trivial tweaks. Going to kill the link to the zip file on GitHub.
I am also desperate for a tutorial on this using Xamarin! Willing to pay $$ for someone to create one!
I've whipped up a quick example of using NFC. Should be making it into a proper recipe soon. In the meantime, you can download the code and look at it if you'd like.
It's a pretty simple app. It will write a string to an NFC Tag. When the app is running and it detects the NFC tag, it will display an image that's associated with the string.
Thank you so much!
I'll stick around these forums and hopefully be able to contribute as I get better.
Do you know if there is any way to capture ALL nfc tags? URL-encoded tags are still opening in the browser.
Ok I got it. It is to do with the DataMimeType.
topgenorth the example is not available.
https://github.com/xamarin/monodroid-samples/tree/master/NfcSample as part of monodroid-samples is perfectly reachable.
No, not work I have last versión and I'm using the API_15
Make sure you have set the correct startup project, and there is at least one Activity with MainLauncher set to true, in the Activity flags.
The application is the same version that the GitHub and is correctly configured. It is necessary have special android simulation version to use NFC ?
No, but NFC cannot be simulated. But the error you get indicates that no project has been chosen as the startup project.
Just tried the sample from Github, and it worked for me on my Galaxy Nexus running Android 4.3 (API level 18).
As @Cheesebaron mentioned, NFC doesn't work in the emulator - you need an NFC device.
OK, I have tried with emulator and NFC center.
Anyone still got the file of the fourth post here? The link doesnt work anymore.
@sebastian_hattinger https://github.com/xamarin/monodroid-samples/tree/master/NfcSample works fine for me.
Is there a way of having shared code for Droid & WP for NFC? Anyone did that?
It is very platform dependent so no.
how can i automatically read data from nfc tag. I'm following the sample on github. thanks
A library from a close friend.
He did a good job. Check it out
@nickelnext , just tried the library on the link you posted.
In did, your friend did a great job. Thanks a bunch for the link!
In NFC card reader sample not able to get the CommonSampleLibrary. Please help.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies