<small id='zgWg1'></small><noframes id='zgWg1'>

    <legend id='zgWg1'><style id='zgWg1'><dir id='zgWg1'><q id='zgWg1'></q></dir></style></legend>
  • <i id='zgWg1'><tr id='zgWg1'><dt id='zgWg1'><q id='zgWg1'><span id='zgWg1'><b id='zgWg1'><form id='zgWg1'><ins id='zgWg1'></ins><ul id='zgWg1'></ul><sub id='zgWg1'></sub></form><legend id='zgWg1'></legend><bdo id='zgWg1'><pre id='zgWg1'><center id='zgWg1'></center></pre></bdo></b><th id='zgWg1'></th></span></q></dt></tr></i><div id='zgWg1'><tfoot id='zgWg1'></tfoot><dl id='zgWg1'><fieldset id='zgWg1'></fieldset></dl></div>

    1. <tfoot id='zgWg1'></tfoot>

          <bdo id='zgWg1'></bdo><ul id='zgWg1'></ul>

        在 Android 中添加地理围栏时出错(状态码 1000)

        时间:2023-09-02
        <i id='SYLNv'><tr id='SYLNv'><dt id='SYLNv'><q id='SYLNv'><span id='SYLNv'><b id='SYLNv'><form id='SYLNv'><ins id='SYLNv'></ins><ul id='SYLNv'></ul><sub id='SYLNv'></sub></form><legend id='SYLNv'></legend><bdo id='SYLNv'><pre id='SYLNv'><center id='SYLNv'></center></pre></bdo></b><th id='SYLNv'></th></span></q></dt></tr></i><div id='SYLNv'><tfoot id='SYLNv'></tfoot><dl id='SYLNv'><fieldset id='SYLNv'></fieldset></dl></div>

              <tbody id='SYLNv'></tbody>
            • <small id='SYLNv'></small><noframes id='SYLNv'>

                • <bdo id='SYLNv'></bdo><ul id='SYLNv'></ul>

                  <tfoot id='SYLNv'></tfoot>
                  <legend id='SYLNv'><style id='SYLNv'><dir id='SYLNv'><q id='SYLNv'></q></dir></style></legend>
                  本文介绍了在 Android 中添加地理围栏时出错(状态码 1000)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我在 onAddGeofencesResult(int statusCode, String[] geofenceRequestIds) 回调中遇到错误,其中 statusCode = 1000.

                  I am getting an error in the onAddGeofencesResult(int statusCode, String[] geofenceRequestIds) callback with statusCode = 1000.

                  我已启用 GPS 和 WiFi.我也有 Google Play 服务,我可以跟踪我的位置并请求更新.为什么我无法添加地理围栏?即使从文档示例应用程序中,我也无法添加地理围栏.我收到以下 Toast 消息:

                  I have my GPS enabled and my WiFi. I also have Google Play Services and I am able to track my location and request updates. Why am I not able to add geofences? I am not able to add geofences even from the documentation sample app. I get the following Toast message:

                  添加地理围栏:失败,错误代码 1000 GeofenceRequestIds=[1,2,1,2]"

                  "Add Geofences: Failure, error code 1000 GeofenceRequestIds=[1,2,1,2]"

                  来自文档(statusCode 1000):

                  From the documentation (statusCode 1000):

                  public static final int GEOFENCE_NOT_AVAILABLE

                  地理围栏服务现在不可用.通常这是因为用户在设置中关闭了位置访问权限 >位置访问.

                  Geofence service is not available now. Typically this is because the user turned off location access in settings > location access.

                  常数值:1000 (0x000003e8)

                  Constant Value: 1000 (0x000003e8)

                  推荐答案

                  当用户在 Settings->Location- 中不同意使用 Google 位置服务"时,您会得到 GEOFENCE_NOT_AVAILABLE (code '1000')>模式:

                  You get GEOFENCE_NOT_AVAILABLE (code '1000') when user disagrees to "Use Google' location services" in Settings->Location->Mode:

                  修复它:

                  • 进入设置->位置->模式
                  • 设置仅限设备(使用 GPS 确定您的位置)"
                  • 设置任何其他选项以获取弹出窗口(例如高精度(使用 GPS、Wi-Fi 和移动网络确定位置")
                  • 显示使用 Google 的位置服务"对话框
                  • 选择同意"

                  这篇关于在 Android 中添加地理围栏时出错(状态码 1000)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:OnLocationChanged 回调永远不会被调用 下一篇:基于经纬度进行半径搜索的SQL查询

                  相关文章

                  最新文章

                  • <bdo id='kmvVI'></bdo><ul id='kmvVI'></ul>

                  1. <tfoot id='kmvVI'></tfoot>

                      <small id='kmvVI'></small><noframes id='kmvVI'>

                      <i id='kmvVI'><tr id='kmvVI'><dt id='kmvVI'><q id='kmvVI'><span id='kmvVI'><b id='kmvVI'><form id='kmvVI'><ins id='kmvVI'></ins><ul id='kmvVI'></ul><sub id='kmvVI'></sub></form><legend id='kmvVI'></legend><bdo id='kmvVI'><pre id='kmvVI'><center id='kmvVI'></center></pre></bdo></b><th id='kmvVI'></th></span></q></dt></tr></i><div id='kmvVI'><tfoot id='kmvVI'></tfoot><dl id='kmvVI'><fieldset id='kmvVI'></fieldset></dl></div>
                      <legend id='kmvVI'><style id='kmvVI'><dir id='kmvVI'><q id='kmvVI'></q></dir></style></legend>