我刚刚下载了 Open NFC API,它附带了一个名为 NFCBrowser
的示例项目。
我已经阅读了他们为 AVD 配置提供的 PDF。但在页面上没有。 10 它说:
3.4 Launching of the AVD and starting of the Open NFC stack
The connection center is used by the “Open NFC for Android” add-on to access to NFC controller.Prior launching the AVD, the Connection center must be launched and configured to accept client connections from other machines, as shown below:"
而且我无法找到 PDF 中提到的连接中心。
我在尝试运行此应用程序时也收到此错误消息:
no NFC access granted at all for the application
最佳答案
要使用 NFC API,应用程序必须通过声明请求用户许可
<uses-permission android:name="android.permission.NFC">
在他们的 list 文件中。
关于android - 打开 nfc 示例应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4593082/