简体   繁体   English

使用Android API的NFC读取标签

[英]NFC Read Tag with Android API

I am still learning the Android API. 我仍在学习Android API。

Could someone give me some guidelines for using the Android API to enable NFC read tags? 有人可以给我一些使用Android API启用NFC读取标签的指南吗? What are the major items that have to happen in order to read the content of message? 要阅读邮件的内容,必须完成哪些主要事项? What is the sequence of things that are supposed to happen? 应该发生的事情顺序是什么? Does someone has a few lines of sample code? 有人有几行示例代码吗?

For instance: 例如:

  1. How to read the intent filter: do I use "PendingIntent"? 如何阅读意图过滤器:我是否使用“ PendingIntent”?
  2. Does the app need to be able to handle exception? 该应用程序是否需要能够处理异常? If yes, how. 如果是,如何。
  3. How to use "NfcAdapter". 如何使用“ NfcAdapter”。

This is what you need to get started. 就是您需要开始的地方。 Read the basics section and you should be off :) 阅读基础知识部分,您应该可以离开:)

Check out this NFC workshop series. 看看这个 NFC系列研讨会。 this will help you. 这将为您提供帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM