首页 > 其他 > 详细

nfc功能读写 demo

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

点此下载//这个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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!