从 wp7 启动另一个应用程序 [英] Launch another app from wp7

查看:32
本文介绍了从 wp7 启动另一个应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的应用程序中为一系列应用程序放置一组启动器.有没有办法在单击图标时从 Windows Phone 7 启动另一个应用程序?

I want to place a set of launchers to a series of apps in my application. Is there a way to launch another app from windows phone 7 when an icon is clicked?

如果这是不可能的,有没有办法将其他应用程序的启动器嵌入我的应用程序中以达到相同的结果?

If this is not possible, is there a way to embedd the launchers of another apps in mine to achive de same result?

推荐答案

,在 WP7 中无法启动另一个应用程序.
您只能使用预定义的选择器或启动器,但不能启动第 3 方应用:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff769550(v=vs.105).aspx

No, there is no way how to launch another app in WP7.
You can use only predefined choosers or launchers, but you cannot launch 3rd party apps:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff769550(v=vs.105).aspx

然而,在 Windows Phone 8 中,您可以使用所谓的协议处理程序,例如,如果您想使用选定的用户启动 Skype,您可以使用以下内容:

In Windows Phone 8 however you can use so called protocol handlers, so for example if you wan to launch Skype with selected user, you can use something like:

await Windows.System.Launcher.LaunchFileAsync("skype:myskypeid");

此功能目前并未广泛使用,因此我们应该会在不久的将来看到这些启动器的更多使用.这些 Uri shemes 已经在工作,您可以使用它们:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj662937(v=vs.105).aspx

This functionality is currently not widely used, so we should see more usage of these launchers in the near future. These Uri shemes are already working and you can use them:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj662937(v=vs.105).aspx

指导如何在 WP8 中使用 Uri 协议处理程序和文件关联:
http://blogs.microsoft.co.il/blogs/alex_golesh/archive/2012/11/02/what-s-new-in-windows-phone-8-4-out-of-8-protocol-handler-and-file-extensions.aspx

Guide how to use the Uri protocol handlers and file associations in WP8:
http://blogs.microsoft.co.il/blogs/alex_golesh/archive/2012/11/02/what-s-new-in-windows-phone-8-4-out-of-8-protocol-handler-and-file-extensions.aspx

这篇关于从 wp7 启动另一个应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆