Launch another Windows Store app

Is it possible to launch another Windows storage application when a user clicks a button in my application?

+4
source share
3 answers

Unfortunately, this is not possible because Win-RT applications are not allowed to run other applications.

There is a workaround that allows you to open a specific application if it is registered to open with a specific URL:

http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206987(v=vs.105).aspx

I'm not sure if this will help, but you can open a store and go to the page with a specific store with:

Launcher.LaunchUriAsync(new Uri("ms-windows-store:PDP?PFN=" + storeID), a); 

Where storeID looks like "30416 [AppName]. [AppName] _94hq21bnosq1p" and can be obtained from the web store source code:

http://apps.microsoft.com/webpdp/en-gb/app/Fhotoroom/4d91298a-07cb-40fb-aecc-4cb5615d53c1

+2
source

Yes, you can run other Windows Store apps from within your app, such as Bing Maps. The Maps application supports protocol activation, which means you can programmatically call up the Maps application from your own Windows Store application using special url syntax.

Windows allows an application to register to become the default handler for a specific URI schema name. Desktop and Windows Store applications can register as the default handler for the URI schema name. You can see http://devhammer.net/blog/w8wil-6-leverage-the-maps-app-for-location-based-features to get this idea.

The white papers for the uri scheme of the Maps application, including all available options, can be found at: http://msdn.microsoft.com/en-us/library/windows/apps/jj635237.aspx

+4
source

Yes, you can run any Windows storage application from your application that you need to do is go to http://www.windowsphone.com/url-of-existing-app . this will first open the application in the browser, which will automatically open in the store.

write the following code in the button click event

 private void AnotherApp(object sender, RoutedEventArgs e) { WebBrowserTask task = new WebBrowserTask(); task.URL = "http://www.windowsphone.com/en-us/store/app/all-base-to-all-base-converter/869cea08-3a99-4218-8d4f-a631c2fb8f53"; task.Show(); } 

the application will first open the application in the browser than automatically, control will be sent to it in the repository.

+2
source

Source: https://habr.com/ru/post/1445321/


All Articles