I want to create a “Launcher application” to run on my Windows 10 IoT (Raspberry Pi 3) build 14986 (or later). A launcher application should simply have two buttons to launch (or switch) other applications already deployed on the device. I am wondering if anyone knows how to run an application (from C #)?
I looked at the API Windows.System.Launcher.LaunchUriAsync, but I'm not sure what to get through (I tested with some URIs and TargetApplicationPackageFamilyNameunder parameters, no luck (nothing happens when the method is called).
Example (which does not work):
private void button_Click(object sender, RoutedEventArgs e)
{
Task.Run(async () =>
{
var options = new LauncherOptions();
options.TargetApplicationPackageFamilyName = "27ad8aa6-8c23-48bd-9633-e331740e6ba7_mr3ez18jctte6!App";
var uri = new Uri("about:blank");
await Windows.System.Launcher.LaunchUriAsync(uri, options);
});
}
source
share