问题描述
我正在为 WP8 开发应用程序.我可以(以编程方式)检查 wp8 设备是否安装了某些特定应用(即 WP8 Facebook 应用)?
I'm developing an app for WP8. Can I check (programmaticaly) if wp8 device has some specific app installed (i.e. WP8 Facebook app)?
推荐答案
您无法获取安装在 Windows Phone 上的应用程序列表,这些应用程序由调用应用程序的发布者以外的其他人发布.
You cannot get the list of applications that are installed on the Windows Phone that are published by someone other than the publisher of the calling application.
有一种方法,可以获取设备上安装的应用程序列表,这些应用程序来自调用方应用程序的发布者.这是我在说什么:
There is a way, however, to get the list of applications that are installed on the device and are originating from the publisher of the caller app. Here is what I am talking about:
IEnumerable<Package> apps = Windows.Phone.Management.Deployment.InstallationManager.FindPackagesForCurrentPublisher();
apps.First().Launch(string.Empty);
这要求您的应用在 Windows Phone 8 设备上运行.
This required your app to run on a Windows Phone 8 device.
这篇关于如何检查用户是否在 WP8 设备上安装了特定的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!