简体   繁体   English

当我的应用程序在前台时,如何防止其他应用程序读取 NFC 标签?

[英]How to prevent other apps to read NFC tags when my app is in foreground?

I want to avoid the dialog that pops up displaying the different apps available to read a NFC Tag when my app is in foreground.我想避免在我的应用程序处于前台时弹出的对话框显示可用于读取 NFC 标签的不同应用程序。 Is that even possible?这甚至可能吗?

Checkout http://developer.android.com/guide/topics/connectivity/nfc/advanced-nfc.html结帐http://developer.android.com/guide/topics/connectivity/nfc/advanced-nfc.html

Specifically, Using the Foreground Dispatch System section具体来说, Using the Foreground Dispatch System部分

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

相关问题 Android - 当前应用程序处于前台时阻止其他应用程序读取NFC - Android - Prevent other apps from reading NFC when current app in foreground 我想在我的Android应用程序处于前台时隐藏其他应用程序的所有通知。 这可能吗? 怎么样? - I want to hide all notifications of other apps when my Android app is in foreground. Is this possible? How? 如何阅读NFC标签以防止系统对话显示NFC启动器列表和标签 - How to read NFC tags to prevent system dialogs NFC starter list and Tags being displayed 使用 NavigationComponent 和单个 Activity 时,如何防止我的设备读取每个 Fragment 中的 NFC 标签? - How to prevent my device reading NFC Tags in every Fragment when using NavigationComponent and a single Activity? 如何使用nfc确保我的应用程序与其他应用程序不冲突 - How to make sure my app does not conflict with other apps using nfc 如何防止其他应用停止我的应用的后台服务? - How to Prevent other apps from stopping background service of my app? 如何读取android中的Nfc标签? - How to read Nfc tags in android? 如何读取 NFC Beam 和标签? - How to read NFC Beam and tags? 读取其他应用程序编写的nfc标签 - read nfc tags written by other application 如何管理NFC标签到多个应用程序的传递 - How to manage delivery of NFC tags to multiple apps
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM