简体   繁体   English

您如何在Android中为Microsoft Tag定义体验处理程序?

[英]How do you define a Experience Handler for Microsoft Tag in Android?

I've been asked by a client to include Microsoft Tag support in an Android app we are creating for them. 一位客户要求我在我们为其创建的Android应用程序中包含Microsoft Tag支持。
I've downloaded the SDK and managed to include the MS Tag Android jar into my project. 我已经下载了SDK,并设法将MS Tag Android jar包含到我的项目中。
I built the demo projects, and have tag scanning working in our app. 我建立了演示项目,并在我们的应用程序中运行了标签扫描。
I've defined a tag (of the free text type) using the online interface ( this ) and scanned it using the app. 我已经使用在线界面( this )定义了一个标签(自由文本类型),并使用该应用程序对其进行了扫描。

But the payload returned is null. 但是返回的有效载荷为空。

The tag works fine when using micosofts Tag app, displaying the text. 使用micosofts Tag应用程序时,该标签可以正常工作,并显示文本。
all I want to do is get the text for the tag, and have my app handel it. 我要做的就是获取代码的文本,并让我的应用程序处理它。
according to this : What I want is a 'Custom Experiance', probably by using an 'Experience Handler'. 根据 :我要的是一个“自定义的experiance”,可能通过使用“经验处理程序”。
However, there is no hint in the supplied code or online doumentation (that I can find) as to how this is achived. 但是,在提供的代码或在线重复(我可以找到)中没有关于如何实现此目标的提示。

any help would be greatly appericated. 任何帮助将大为受益。

OK, so I haven't exactly figured it out, but I did get an email from the Tag Support Team 好的,所以我还没有弄清楚,但是我确实收到了标签支持团队的电子邮件
It looks something like this: 看起来像这样:

Thank you for reaching out to Tag Support. 感谢您与标签支持小组联系。

Please know that the associated text can be associated with any Tag (not just free text). 请注意,关联的文本可以与任何标签关联(而不仅仅是自由文本)。

You need to use the Tag creation API to create a Tag and add the payload. 您需要使用代码创建API创建代码并添加有效负载。
Once logged in to your LiveID account, you should be able to go to the Key Manager page and download the Tag Custom Payload Creation project. 登录到LiveID帐户后,您应该可以转到“密钥管理器”页面并下载“标记自定义有效负载创建”项目。
This project (which you can simply use, once loaded in VS 2010 and built) shows how to create such a payload and attach to a Tag. 该项目(您可以在将其加载到VS 2010中并构建后就可以简单地使用它)展示了如何创建这样的有效负载并将其附加到Tag。

If you have any questions, comments or suggestions, please let us know. 如果您有任何疑问,意见或建议,请告诉我们。

Thank you for your feedback and your interest in Microsoft Tag. 感谢您的反馈和对Microsoft Tag的关注。

Best Regards, 最好的祝福,

Microsoft Tag Support Team Microsoft标记支持团队

Since I'm being provided with tags that have allready been created by the cilent, I don't need to tak this step, but I hope it helps anyone else strugging with this problem. 由于已经为我提供了已经由cilent创建的标签,因此无需执行此步骤,但是我希望它可以帮助其他解决此问题的人。

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

相关问题 您如何在Android设备上测试“内存不足”异常处理程序? - How do you test an “out of memory” exception handler on an Android device? Android:如何在布局之外定义按钮和其他小部件? - Android: How do you define buttons and other widgets outside of a layout? 如何在 Android Studio 中定义对视图的引用? - How do you define a reference to a view in Android Studio? 如何在自定义视图中获取“android:”标记值 - How do you get “android:” tag values in a Custom View 你如何在android上读取NFC标签的唯一ID? - how do you read the unique ID of an NFC tag on android? 你通常如何标记日志条目? (安卓) - How do you usually Tag log entries? (android) (#803) 您请求的某些别名不存在:{education-experience-id} Android - (#803) Some of the aliases you requested do not exist: {education-experience-id} Android 如何在Android中使用“自定义标签处理程序”处理背景色标签? - How to handle background-color tag with Custom Tag Handler in Android? 您如何使Handler停止接受输入,直到在Android中出现提示? - How do you make a Handler stop taking input until prompted in Android? 如何在Gradle文件中定义变量? - How do you define variables in a Gradle file?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM