android - 打开 nfc 示例应用程序

标签 android nfc open-nfc

我刚刚下载了 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/

相关文章:

android - 如何使用 onItemSelectedListener 改变 View 的颜色

android - 共享 TTS 在 Activity 死了然后又活了之后没有工作

java - 读取和写入 NFC

android - 希望购买 Android NFC 标签

android - 从 Xamarin 读取 NFC 标签

java - 启用/禁用 NTAG213 计数器

android - Android 如何知道它必须将允许的 vpn 应用程序定向到 tun0

nfc - 打开NFC模拟器(NFC不可用)

c++ - 打开 NFC - 错误 LNK2019 : unresolved external symbol __imp__ShellExecuteW@24

android - Google+ API 已于 3 月 7 日关闭,需要更新什么?