Call an external app on windows phone 8.1 runtime(not silverlight) xaml c# application

前端 未结 2 1154
执念已碎
执念已碎 2021-01-24 14:55

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

Thanks!

相关标签:
2条回答
  • 2021-01-24 15:04

    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"));
    
    0 讨论(0)
  • 2021-01-24 15:29

    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

    0 讨论(0)
提交回复
热议问题