locked
How to open another app from Metro App RRS feed

  • Question

  • Hi All,

    I implement simple project in Metro App. The scenario is in[Black App] have a button to open [Green App] and [Red App].

    I have 2 question :

    1. I using Protocol &  Windows.System.Launcher.LaunchUriAsync(_Uri) it work well. So Have another way to open App form another app  in Metro. Could you tell me detail about another way ?

    2. How i can open [Green App] & [Red App] when [Black App] is launch. I try to implment function in the question [1] but not success

    Here My code:

      public static async void Open()
            {

                var _Uri = new Uri("GreenApp: " + DateTime.Now.ToString());

                  await Windows.System.Launcher.LaunchUriAsync(_Uri,
                  new Windows.System.LauncherOptions
                  {
                      DesiredRemainingView = ViewSizePreference.UseNone
                  });
            }

    Thanks for supporting me.

    Monday, April 13, 2015 10:08 PM

Answers

  • No. Windows Store apps cannot directly open other apps. Launching protocols out files into the default handlers is the only option.

    This launch can only be done while the app is on the foreground. You're probably calling this too early. Wait for the app to be fully initialized and running.

    Monday, April 13, 2015 11:22 PM
    Moderator

All replies

  • No. Windows Store apps cannot directly open other apps. Launching protocols out files into the default handlers is the only option.

    This launch can only be done while the app is on the foreground. You're probably calling this too early. Wait for the app to be fully initialized and running.

    Monday, April 13, 2015 11:22 PM
    Moderator
  • Yes, Thanks so much, Rob
    Saturday, April 18, 2015 3:05 PM