启动一个Android应用程序/意图从NFC标签? [英] Start an Android app/intent from an NFC tag?

查看:322
本文介绍了启动一个Android应用程序/意图从NFC标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在配备了NFC读写器硬件的Andr​​oid设备,有没有内置支持使用NFC标签内容,以断火的意图(例如,启动一个应用程序)?我问的支持是否存在默认情况下,我知道我可以建立自己的应用程序,以监听NFC事件并处理它们。

On an Android device equipped with NFC reader hardware, is there any in-built support to use the NFC tag contents to fire off an intent (e.g. starting an app)? I am asking whether the support is there by default, I know I could build my own app to listen for NFC events and handle them.

我所见过的NFC标签写入应用程序似乎只支持文本/网址/联系人和联系人支持似乎没用,因为很多都是远远过大,超出了标签。

All the NFC tag writing apps I've seen appear to only support text/URLs/contacts, and the contacts support seems useless as many are far too big to fit in a tag.

推荐答案

据的的的 Android开发者网站,它有可能为你的应用程序过滤NFC意图如的 ACTION_NDEF_DISCOVERED

According the the Android Developer site, it is possible for your app to filter NFC intents such as ACTION_NDEF_DISCOVERED.

这篇关于启动一个Android应用程序/意图从NFC标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆