windows8 提交应用商店失败,需要添加隐私声明
2012-11-29 14:10
459 查看
windows8 提交应用商店失败,需要添加隐私声明,提示要添加隐私声明。于是在网上百度找到这篇文章。方法如下:
在 App.xaml.cs 文件中,重写 OnWindowCreated(WindowCreatedEventArgs args) 方法,然后当用户
点击 “超级按钮” 上的设置时 (Windows 8 的设置操作),添加 “隐私声明” 的链接,点击后可以跳到网站的 “隐私声明” 页面:
转自: http://www.cnblogs.com/hebeiDGL/archive/2012/11/18/2775568.html
在 App.xaml.cs 文件中,重写 OnWindowCreated(WindowCreatedEventArgs args) 方法,然后当用户
点击 “超级按钮” 上的设置时 (Windows 8 的设置操作),添加 “隐私声明” 的链接,点击后可以跳到网站的 “隐私声明” 页面:
protected override void OnWindowCreated(WindowCreatedEventArgs args) { SettingsPane.GetForCurrentView().CommandsRequested += onCommandsRequested; base.OnWindowCreated(args); } void onCommandsRequested(SettingsPane settingsPane, SettingsPaneCommandsRequestedEventArgs eventArgs) { //表示处理在用户调用上下文菜单命令时引发的事件的回调函数。 UICommandInvokedHandler handler = new UICommandInvokedHandler(onSettingsCommand); //创建表示设置项的设置命令对象。此设置命令可追加到 ApplicationCommands 矢量。 SettingsCommand privacyStatement = new SettingsCommand("privacyStatement", "隐私政策", handler); //追加 SettingsCommand 对象,使这些对象可供 SettingsPane UI 使用。 eventArgs.Request.ApplicationCommands.Add(privacyStatement); } //当命令调用时 async void onSettingsCommand(IUICommand command) { SettingsCommand settingsCommand = (SettingsCommand)command; if (settingsCommand.Id.ToString() == "privacyStatement") { Uri pageUri = new Uri("网站的隐私声明页面"); await Windows.System.Launcher.LaunchUriAsync(pageUri); } }
转自: http://www.cnblogs.com/hebeiDGL/archive/2012/11/18/2775568.html
相关文章推荐
- windows8 提交应用商店失败,需要添加隐私声明 (privacy statement)
- windows phone 应用提交商店失败总结
- 简单的天气应用(Microsoft Windows 商店 应用程序)隐私策略声明
- Win8提交应用 隐私声明
- Android app 上传到google play,需要设置 隐私政策声明
- 向Windows Phone应用商店(App Hub)提交应用
- 应用商店低级混战:360建议用户卸载小米应用商店,双方发声明隔空交火
- Windows Phone应用商店(App Hub)提交应用
- Windows8应用商店被优化软件删掉该怎么恢复
- React Native 程序部署至 iOS 应用商店之前需要的配置和如何生成 release 版本的 APK 包
- laravel中,提交表单后给出提示例如添加成功,添加失败等等
- [10月1日的脚本] 移除Windows8应用商店中的应用程序
- chrome谷歌翻译失败、谷歌应用商店打不开解决方法、谷歌ip大全
- 在Windows8中根据需要添加不同时区时钟的方法
- 在SpringMVC中,当Json序列化,反序列化失败的时候,会抛出HttpMessageNotReadableException异常, 当Bean validation失败的时候,会抛出MethodArgumentNotValidException异常,因此,只需要在ExceptionHandler类中添加处理对应异常的方法即可。
- Windows Phone 8初学者开发—第23部分:测试并向应用商店提交
- Win8 音乐达人播放器应用 隐私声明
- Spark提交应用失败
- 错误代码为 0x80072EFD,可在需要时使用 win10应用商店问题
- 找人应用隐私策略声明