Start an Android app/intent from an NFC tag?

前端 未结 3 1262
难免孤独
难免孤独 2020-12-08 21:06

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 w

3条回答
  •  半阙折子戏
    2020-12-08 21:33

    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

提交回复
热议问题