CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 通讯/手机编程 android开发

文件名称:unknowndriver_srui.cn

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2015-04-09
  • 文件大小:
    22.66kb
  • 已下载:
    0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

创建一个准备推送到另一个设备上的包含 NdefRecord 的 NdefMessage 对象

调用带有 NdefMessage 类型参数的 setNdefPushMessage() 方法,或者是在Activity的 onCreate()方法中调用 setNdefPushMessageCallback 方法来传递实现 NfcAdapter.CreateNdefMessageCallback 接口的对象。这两个方法都至少需要一个准备要启用Android Beam的Activity,以及一个可选的其他的活跃的Activity列表。

通常,如果你的Activity在任何时候都值推送相同的NDEF消息,那么当两个设备在通信范围内的时候,使用 setNdefPushMessage()就可以了。当你的应用程序要关注应用程序的当前内容,并想要根据用户在你的应用程序中的行为来推送NDEF消息时,就要使用setNdefPushMessageCallback方法。

下列示例代码演示了如何在activity的 onCreate()方法中调用 NfcAdapter.CreateNdefMessageCallback 方法(完整的示例请看 AndroidBeamDemo)。这个示例中还有帮助创建MIME记录的方法:-Create an object that contains ready to push NdefMessage NdefRecord another device

Call setNdefPushMessageCallback method call setNdefPushMessage with NdefMessage type parameter () method, or in the Activity onCreate () method to pass an object to achieve NfcAdapter.CreateNdefMessageCallback interface. Both methods require at least one preparation to enable Android Beam of Activity, and an optional list of other active Activity.

Generally, if your Activity at any time to push the same value NDEF messages, then when the two devices within communication range when using setNdefPushMessage () on it. When your application is going to focus on the current contents of the application, and you want the user behavior in your application to push NDEF message, then use setNdefPushMessageCallback methods.

NfcAdapter.CreateNdefMessageCallback method invocation following sample code demonstrates how the activity s onCreate () method (complete example, see AndroidBeamDemo). This example also help
(系统自动生成,下载前可以参看下载内容)

下载文件列表

安装方法.txt
usb/ntmap.inf
usb/usbstor.inf
usb/ntmap.sys
usb/usbstor.sys
usb/ntmap.cat
usb/ntmaphlp.pdr
使用说明.url
usb

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com