Windows Phone open another application
I need to open a new application from my application. If it is not installed on the phone then I need to open the installation inside windows store.
Anybody have an idea how can I achieve this?
I read the below articles but I couldn't find anything helpful:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207014%28v=vs.105%29.aspx http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206987%28v=vs.105%29.aspx
Answer:
For the store i ended up using:
private async void test()
{
try
{
Uri uri = new Uri("zune://navigate/?appid=xxx-xxx-xxx-xxx");
await Launcher.LaunchUriAsync(uri);
}
catch (Exception exception)
{
//TODO
}
}
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj662937(v=vs.105).aspx describes how you can launch the store app and display a specific app
What you need will look something like this:
Windows.System.Launcher.LaunchUriAsync(new Uri("zune:navigate?appid=[app ID]"));
where '[app ID]' needs to be replaced by the unique app id of the application you want to install.
链接地址: http://www.djcxy.com/p/67522.html上一篇: 内存分析器丢失