zoukankan      html  css  js  c++  java
  • #WP7 GPS# 如何判断GPS设备可用或者用户是否开启了GPS

    我的 吾得地图 提交APPHUB 又被打回来了,原因如下:

    1. Disable all active data connections on the device. 2. Launch the application. 3. Select any one of the tiles expect the right bottom one. 4. Select the "flag" (我的位置) icon at the application bar. 5. Observe the application hangs while trying to load.

    我靠,有办法判断 #WP7 GPS# GPS设备可用或者用户是否开启了GPS?

    GeoCoordinateWatcher.TryStart 方法,解忧愁!~ 

    官方文档 http://msdn.microsoft.com/zh-cn/library/system.device.location.geocoordinatewatcher.trystart.aspx


    可用返回True ,注意如果返回True 就开始定位了 相当于成功 Start()!


    测试了一下还挺好用!~希望提交能成功!~

    吾得地图 APP http://www.windowsphone.com/en-US/apps/b052831e-6b28-440a-bdd6-bae5ae1c99a4

    另外说一下微软对定位服务审核非常严格!

    你必须确保

    1、需要在设置中增加开关,让用户可以设置关闭GPS 即提供定位服务的开启/关闭设置

    2、必须提示用户将使用定位功能!~


     2.7.2
    Comments: There is a privacy policy upon the initial launch of the application, but is not persistent within the application.

    这个现在审核尺度有点怪!~我同样的程序香港账户能发布,而大陆账户却提示上面的错误!~

  • 相关阅读:
    PowerDesigner导出word表结构
    Java
    Java
    Java
    Java
    Java
    Java
    Java
    Java
    Java
  • 原文地址:https://www.cnblogs.com/piaocz/p/2321590.html
Copyright © 2011-2022 走看看