[英]Call an external app on windows phone 8.1 runtime(not silverlight) xaml c# application
I'm trying launch an external app sending one parameter from my application. 我正在尝试启动一个外部应用程序,该应用程序从我的应用程序发送一个参数。 Anyone knows one way to do that.
任何人都知道一种方法。
Thanks! 谢谢!
You have only two ways to launch an external application 您只有两种方式来启动外部应用程序
You can find additional details at the MSDN: Auto-launching apps using file and URI associations for Windows Phone 8 您可以在MSDN上找到其他详细信息: 使用Windows Phone 8的文件和URI关联自动启动应用程序
For example: 例如:
await Launcher.LaunchUriAsync(new Uri("ms-settings-emailandaccounts:///"));
This goes to "email and accounts" settings. 这将转到“电子邮件和帐户”设置。 You can find URI schemes for other system apps here: Reserved file and URI associations for Windows Phone 8
您可以在这里找到其他系统应用程序的URI方案: Windows Phone 8的保留文件和URI关联
There are also some new options for wp 8.1: wp 8.1也有一些新选项:
ms-settings-workplace
ms-settings-proximity
ms-settings-nfctransactions
ms-settings-networkprofileupdate
ms-settings-notifications
ms-settings-camera
ms-settings-uicctoolkit
ms-battery
ms-wallet
You can also register your app for a URI association and pass parameters to it: 您还可以为URI关联注册您的应用并将参数传递给它:
await Launcher.LaunchUriAsync(new Uri("myapp:///parameters"));
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.