简体   繁体   English

我可以使用NFC演示作为前台调度测试仪吗?

[英]Can I use NFC demo as a tester of foreground dispatch?

I tried NFC demo with my nexus s and it works well. 我尝试使用nexus进行NFC演示,并且效果很好。 I want to call an app from background to foreground using foregrounddispatch example given by android sdk. 我想使用由android sdk给出的foregrounddispatch示例从后台调用应用程序。 Can I test foregrounddispatch example with NFC demo? 我可以使用NFC演示测试foregrounddispatch示例吗? Does anyone who tried this? 有人尝试过吗? and if possible, which part I should edit? 如果可能,我应该编辑哪一部分? It is my first time to manage android app so please give me advice. 这是我第一次管理Android应用,因此请给我建议。

(foregrounddispatch example: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/nfc/ForegroundDispatch.html ) (foregrounddispatch示例: http : //developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/nfc/ForegroundDispatch.html

Foreground dispatching requires the app to be in the foreground when scanning the tag. 前台调度要求应用程序在扫描标签时位于前台。 If I understand correctly, you want an app to launch upon scanning the tag. 如果我理解正确,则您希望应用程序在扫描标签后启动。 In this case, you need to create intent filters to handle the specific tag that you want to handle. 在这种情况下,您需要创建意图过滤器以处理要处理的特定标签。 See the dev guide for more information: http://developer.android.com/guide/topics/nfc/nfc.html or let me know if you need more guidance. 有关更多信息,请参见开发指南: http : //developer.android.com/guide/topics/nfc/nfc.html或让我知道是否需要更多指导。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM