아래 링크에서 관련 자료와 full source 코드를 다운 받을 수 있다.

 

SampleNFC.zip

 

StickyNotes.zip

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

(물론 http://developer.android.com/guide/topics/connectivity/nfc/nfc.html#p2p 안드로이드 문서에도 잘 설명되어 있다.)

Sticky Notes 샘플은

1. 폰 => nfc (writing)

2. 폰 <= nfc (tag reading)

3. 폰 => 폰 (p2p data exchange)

 

위와 같이 크게 3가지 역할을 해낸다.

NFC writing, reading, exchange에 모두 NDEF (Nfc Data Exchage Format, <= Hardroid 링크)을 이용한다.

안드로이드에서 NDEF에 관한 모든 라이브러리를 제공해주므로 심각하게 고민할 필요는 아직 없다.

 

[출처] http://scintillating.tistory.com/125

+ Recent posts