且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何检查用户是否安装了WP8设备上的特定应用

更新时间:2022-06-01 21:53:58

您不能得到那被安装在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.