检查第三方应用程序安装 [英] Check For Third-Party App Installation

查看:21
本文介绍了检查第三方应用程序安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用 B 中,我需要检查应用 A 是否曾经安装过.如果安装了 AB 将调用 A.

In my app B, I need to check if app A ever installed. If A has been installed, B will invoke A.

如果A尚未安装,B将前往市场下载A.

If A has not been installed, B will go to marketplace to download A.

如何实现这个???
任何建议都会很棒!
谢谢!

how to implement this???
ANY ADVICE WILL BE GREAT!
THANKS!

推荐答案

您目前无法检查设备上是否安装了第三方应用程序.但是,如果您是该应用程序的发布者,则可以使用:

There is currently no way for you to check whether a third-party application was installed on the device. However, it you are the publisher of that application, you can use:

IEnumerable<Package> apps = Windows.Phone.Management.Deployment.InstallationManager.FindPackagesForCurrentPublisher();
apps.First().Launch(string.Empty);

此处记录了此功能.

这篇关于检查第三方应用程序安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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