Hello everyone.
The Mixed Reality Forums here are no longer being used or maintained.
There are a few other places we would like to direct you to for support, both from Microsoft and from the community.
The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.
For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.
If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.
And always feel free to hit us up on Twitter @MxdRealityDev.
The Mixed Reality Forums here are no longer being used or maintained.
There are a few other places we would like to direct you to for support, both from Microsoft and from the community.
The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.
For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.
If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.
And always feel free to hit us up on Twitter @MxdRealityDev.
Options
How to launch a UWP app by clicking on a hologram
So let's say I have a 3D holographic app and by some event on a hologram (say click) I want to launch some UWP app (with some message / arguments) & do some thing and when the UWP closes pass some message back to script running on hologram.
I'd like to know how much of this is possible?
0
Answers
You can't start another application as you can't access the shell via the APIs. But within the one process you can go 2D --> Hologram --> 2D --> Hologram. Some more info in this post (https://forums.hololens.com/discussion/comment/7750#Comment_7750)
Hi,
I believe that you can launch another app by using the regular UWP mechanism of the Launcher class which can either launch by Uri or by File and (e.g.) you can encode parameters into the Uri in order to launch. An example might be;
void OnTapped(InteractionSourceKind source, int tapCount, Ray headRay)
{
#if WINDOWS_UWP
Windows.System.Launcher.LaunchUriAsync(
new System.Uri("http://www.microsoft.com"));
#endif
}
and that will launch the Edge browser because it's the handler for the http protocol scheme. Microsoft UWP apps register a number of schemes and custom apps can register their own.
The docs here https://developer.microsoft.com/en-us/windows/holographic/app_model#app_to_app_interactions say that HoloLens does support Protocol based launching and details how it works for exclusive (3D) applications.
It sounds like you might be wanting to do a "launch for results" which is part of the UWP (https://msdn.microsoft.com/en-us/library/windows/apps/dn956688.aspx) and that previous document does say that this is also supported (look for the term 'modal launch').
It might be that you want to go a little deeper and use something like 'App Services' but those aren't supported on the HoloLens today but this document https://developer.microsoft.com/en-us/windows/holographic/current_limitations_for_apps_using_apis_from_the_shell says that they are coming.
I hope that's helpful and apologies if I've misinterpreted your question.
In order to be able to launch an app my guess is you would need to have the URI to the file system. If anybody has some examples of this that would be really useful!