Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NFC tutorial for Android other than API demo

Tags:

android

nfc

I'm tooling around with my Nexus S and some MiFare tags and am trying to get together an application that simply reads and displays the ID of a tag. I've looked through the API demo a few times and can't quite get my head around it; I think this is so because the demo includes code for faking tags for developers who don't have access to a real device.

What I need is a tutorial or similar on how to code NFC-based apps for Android, ideally just the required imports and the method that will return the data from a scanned tag.

Does anyone know this off the top of their head?

like image 942
Elomis Avatar asked Apr 23 '11 04:04

Elomis


People also ask

Can you emulate NFC on Android?

Many Android-powered devices that offer NFC functionality already support NFC card emulation. In most cases, the card is emulated by a separate chip in the device, called a secure element. Many SIM cards provided by wireless carriers also contain a secure element.


2 Answers

Exactly for this.. I did some work.

http://mifareclassicdetectiononandroid.blogspot.com/2011/04/reading-mifare-classic-1k-from-android.html

Hope it helps.

like image 65
benya Avatar answered Oct 20 '22 08:10

benya


I wrote an in-depth tutorial on how to get started with NFC here for people who are interested in learning how to integrate NFC with their Android app:

http://www.jessechen.net/blog/how-to-nfc-on-the-android-platform/

like image 12
Jesse Chen Avatar answered Oct 20 '22 10:10

Jesse Chen