I want to build a "Launcher App" to run on my Windows 10 IoT (Raspberry Pi 3) build 14986 (or later). The launcher app should basically just have two buttons to launch (or switch to) other apps already deployed on the device. I'm wonder if anyone knows how to launch an app (from C#)?
I've looked at the Windows.System.Launcher.LaunchUriAsync
API, but I'm not sure what to pass in (I've tested with some URIs and TargetApplicationPackageFamilyName
under options, no luck (nothing happens when calling the method).
Example (which doesn't 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);
});
}