ActivationPolicy = QUOT;简历"与语音命令不兼容? [英] ActivationPolicy="Resume" incompatible with Voice Commands?
问题描述
我认为我发现新的ApplicationModel和语音识别API之间存在不兼容性。
问题似乎是"工作"。通过以下方式:
- 如果应用程序处于后台,那么我可以向其发送语音命令
- 如果应用程序处于前台,即使正确在屏幕锁定下取消激活,语音命令被操作系统识别但未传送到应用程序(除非我遗漏了某些内容)。
与Lumia 920(// build / firmware)和仿真器。
如果ActivationPolicy是默认值,一切都很好。
您可以轻松地重现问题在此处下载示例:
http://msdn.microsoft.com/en-us/magazine/jj721592.aspx
然后修改WAManifest.xaml,添加"ApplicationModel = Resume" ;属性。
I think I found an incompatibility between the new ApplicationModel and the speech recognition API.
The issue seems to "work" in the following way:
- if the app is in background, then I am able to send Voice Commands to it
- if the app is in foreground, even when correctly deactivated under a screen lock, Voice Commands are recognized by the operating system but not delivered to the app (unless I am missing something).
Same behaviour both with Lumia 920 (//build/ firmware) and emulator.
Everything is fine if the ActivationPolicy is the Default.
You can easly reproduce the problem downloading the example here:
http://msdn.microsoft.com/en-us/magazine/jj721592.aspx
and then modifying the WAManifest.xaml, adding the "ApplicationModel=Resume" attribute.
我错过了什么?
Am I missing something?
推荐答案
同样适用于您自己的协议 - 例如
The same happens also with your own protocol-uri e.g.
假设您注册contoso:协议,如果您发出:
Supposing you register for the contoso: protocol, if you issue a:
  Launcher.LaunchUriAsync(new Uri(" contoso:// SomeText"));
Launcher.LaunchUriAsync(new Uri("contoso://SomeText"));
从您的应用中,您的ActivationPolicy是Resume,您看不到任何事情发生;使用默认的ActivationPolicy,您会看到您的应用使用正确的上下文重新启动。
From within your app and your ActivationPolicy is Resume, you don't see anything to happen; with the default ActivationPolicy, you see your app restarted with the correct context instead.
这篇关于ActivationPolicy = QUOT;简历"与语音命令不兼容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!