Question

I'm trying launch an external app sending one parameter from my application. Anyone knows one way to do that.

Thanks!

Was it helpful?

Solution

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

There are also some new options for 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:

await Launcher.LaunchUriAsync(new Uri("myapp:///parameters"));

OTHER TIPS

You have only two ways to launch an external application

  1. Launch registered file type
  2. Launch registered URI scheme

You can find additional details at the MSDN: Auto-launching apps using file and URI associations for Windows Phone 8

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top