Can we get the list of apps programmatically in windows phone?

余生长醉 提交于 2019-12-11 08:14:02

问题


Is that possible to get the list of apps and their names in windows phone using c# code ? And links to launch any app installed in phone ?


回答1:


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);

This required your app to run on a Windows Phone 8 device.




回答2:


With the current Windows Phone SDK you don't have access to that information.

There are some apps that allow you to supply your Live Id and then they will go into your profile and get info about the apps you have installed, but that will actually allow them to do whatever they want with your Live Id, so I wouldn't go that way...



来源:https://stackoverflow.com/questions/15448832/can-we-get-the-list-of-apps-programmatically-in-windows-phone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!