本地信息都存放在 WMAppManifest 里面,获取就不用说了。。。知道位置 就知道怎么获取了。。
主要是讲那个 市场上面的详情怎么获取,就是API调用显示在这个页面里面的详情:
class="brush:csharp;gutter:true;"> public void CheckUpdate() { new MarketplaceDetailTask() { ContentIdentifier = "b45f0a5f-13d8-422b-9be5-c750af531762", ContentType = MarketplaceContentType.Applications }.Show(); }
这个URL是:
#if WP8 var url = string.Format("http://marketplaceedgeservice.windowsphone.com/v8/catalog/apps/{0}?os={1}&cc={2}&oc=&lang={3}?", productId.TrimStart('{').TrimEnd('}'), Environment.OSVersion.Version, cultureInfoName.Substring(cultureInfoName.Length - 2).ToUpperInvariant(), cultureInfoName); #else var url = string.Format("http://marketplaceedgeservice.windowsphone.com/v3.2/{0}/apps/{1}?clientType=WinMobile%207.1&os={2}", cultureInfoName, productId.TrimStart('{').TrimEnd('}'), Environment.OSVersion.Version); #endif
比如QQ就可以用这个url进行获取:
WP7那个,虽然只要地区和appID就可以,但是你们还是写全吧,我就举例子:
http://marketplaceedgeservice.windowsphone.com/v3.2/en-US/apps/b45f0a5f-13d8-422b-9be5-c750af531762
WP8那个,就要写完全参数了:
http://marketplaceedgeservice.windowsphone.com/v8/catalog/apps/b45f0a5f-13d8-422b-9be5-c750af531762?os=8.0&cc=US&oc=&lang=en-US