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

前端 未结 2 1155
执念已碎
执念已碎 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"));
    

提交回复
热议问题