Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Start an Android app/intent from an NFC tag?

Tags:

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.

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.

like image 735
Ollie C Avatar asked Dec 23 '11 11:12

Ollie C


People also ask

Can an NFC tag open an app?

All it takes is a quick contact of the tag with an NFC-enabled iPhone. An example: Use an NFC tag to open the Maps app directly when contacting the iPhone.

Can you emulate an NFC tag Android?

Many Android-powered devices that offer NFC functionality already support NFC card emulation. In most cases, the card is emulated by a separate chip in the device, called a secure element.


1 Answers

This is possible with Android Application Records. You basically write the package name of the app that you want to start into your NFC tag and when a device scans it, it will do its best to open the application. If its not there, it will take you to Market to download it. This is only available to 4.0 devices and up.

See this dev guide: https://developer.android.com/guide/topics/connectivity/nfc/nfc.html#aar

like image 75
robertly Avatar answered Sep 20 '22 09:09

robertly