码迷,mamicode.com
首页 > 其他好文 > 详细

nfc功能读写 demo

时间:2016-11-14 17:12:55      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:com   androi   sdn   lte   tail   就会   --   http   target   

点此下载//这个demo是把这个程序作为一个手机启动选择的,只要一扫到卡片就会跳转到这个Activity。

只在当前Activity中有效参考:http://blog.csdn.net/zoeice/article/details/9714963,

代码完成后注意,在AndroidManifest.xml里面:

 <intent-filter>
     <action android:name="android.nfc.action.TAG_DISCOVERED"></action>
      <category android:name="android.intent.category.DEFAULT"></category>
 </intent-filter>

改为:

<intent-filter>
      <action android:name="android.nfc.action.TAG_DISCOVERED"></action>
      <!--<category android:name="android.intent.category.DEFAULT"></category>-->
 </intent-filter>

 

nfc功能读写 demo

标签:com   androi   sdn   lte   tail   就会   --   http   target   

原文地址:http://www.cnblogs.com/zzw1994/p/6062107.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!