启动另一个 Windows 商店应用程序 [英] Launch another windows store app

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

问题描述

当用户点击我的应用中的按钮时,是否可以启动不同的 Windows 商店应用?

Is it possible to launch a different windows store app when a user clicks on a button within my app?

推荐答案

遗憾的是,这是不可能的,因为 Win-RT 应用程序不允许启动其他应用程序.

Sadly, it is not possible as Win-RT apps are not allowed to launch other apps.

如果某个应用已注册为使用特定 URL 打开,则有一种解决方法可让您打开该应用:

There's a workaround that allows you to open a specific app if it's registered to open with a specific URL:

http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206987(v=vs.105).aspx

我不确定它是否会有很大帮助,但是您可以打开商店并转到特定的商店应用页面:

I'm not sure if it will help much, but you can open the store and go to a specific store app page with:

Launcher.LaunchUriAsync(new Uri("ms-windows-store:PDP?PFN=" + storeID), a);

其中 storeID 看起来像 '30416[AppName].[AppName]_94hq21bnosq1p' 并且可以从网上商店源代码中获取:

Where the storeID looks like '30416[AppName].[AppName]_94hq21bnosq1p' and can be obtained from the web store source code:

http://apps.microsoft.com/webpdp/en-gb/app/Fhotoroom/4d91298a-07cb-40fb-aecc-4cb5615d53c1

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

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