Search Unity

Launch HoloLens Applications since Unity

Discussion in 'VR' started by Onsterion, Aug 5, 2016.

  1. Onsterion

    Onsterion

    Joined:
    Feb 21, 2014
    Posts:
    215
    Hi all,


    How can i do for launch example: "Skype" while in Unity?(i know HoloLens Skype work in fullscreen).





    Greetings.-
     
  2. Unity_Wesley

    Unity_Wesley

    Unity Technologies

    Joined:
    Sep 17, 2015
    Posts:
    558
    Hello,

    Is the question how do you launch Skype while you have full-screen application running already?

    You might be able to use running cortana if Skype application is already running, however I think you need to be in the Skype application in order to call a contact.

    Thank you,
    Wesley
     
  3. Onsterion

    Onsterion

    Joined:
    Feb 21, 2014
    Posts:
    215
    Hello Wesley,

    For the moment i only need to open Skype process like the method Application.OpenURL (launch a Windows Edge Browser) but for Skype.

    Greetings.-
     
  4. BrandonFogerty

    BrandonFogerty

    Joined:
    Jan 29, 2016
    Posts:
    83
    Hi @Onsterion

    You may be able to use the System.Diagnostics.Process class to do that.

    For example
    Code (CSharp):
    1. using System;
    2. using System.Collections.Generic;
    3. using System.Text;
    4. using System.Diagnostics;
    5.  
    6. namespace MyApp
    7. {
    8.     class Program
    9.     {
    10.         static void Main(string[] args)
    11.         {
    12.             Process process = new Process();
    13.             process.StartInfo.FileName = "notepad.exe";
    14.             process.Start();
    15.             process.WaitForExit();
    16.         }
    17.     }
    18. }
    19.  
    I haven't actually tried this on device but perhaps you could replace "notepad.exe" with "skype.exe".
     
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
  6. Onsterion

    Onsterion

    Joined:
    Feb 21, 2014
    Posts:
    215
    Thanks for response, i tried this first but doesn't work.


    Hi Tautvydas-Zilys;


    I tried Application.OpenURL("skype:"); and works fine in common windows 10 but in hololens it's not working, i guess this is because the Skype for Hololens is Skype Preview and the uri is not the same or it's not registered.

    And it's strange, in the device portal in apps tab the service Skype is named Skype, so i guess the uri is correct.
     
  7. botgreet

    botgreet

    Joined:
    Dec 26, 2015
    Posts:
    6
    what about sip: with a specific skype user? That's a more general protocol... I use that on some intranet web pages to open skype session to specific user...but then again that is probably lync rebranded as skype...
     
  8. Onsterion

    Onsterion

    Joined:
    Feb 21, 2014
    Posts:
    215
    Well apparently "skype:echo123?call" is not currently supported. :(
     
  9. pranavgadamsetty

    pranavgadamsetty

    Joined:
    Feb 16, 2017
    Posts:
    9
    Hi,

    So you're saying that an external file (local file on the device in which the application is being built) cannot be opened using System.Diagnostics through the HoloLens, right?

    Thank You,
    Pranav
     
  10. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Windows Store applications are not allowed to start new processes.
     
    Hodgson_SDAS likes this.
  11. pranavgadamsetty

    pranavgadamsetty

    Joined:
    Feb 16, 2017
    Posts:
    9
    Hi,

    Appreciate the early reply. Thanks for you help. I just found a link where StreamingAssets is described as a method to open an external file in the HoloLens Emulator. Is there a way to run exe or bat files in the Emulator?

    Regards,
    Pranav