久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <bdo id='RtUHI'></bdo><ul id='RtUHI'></ul>
<legend id='RtUHI'><style id='RtUHI'><dir id='RtUHI'><q id='RtUHI'></q></dir></style></legend>

  • <tfoot id='RtUHI'></tfoot>
  • <small id='RtUHI'></small><noframes id='RtUHI'>

    <i id='RtUHI'><tr id='RtUHI'><dt id='RtUHI'><q id='RtUHI'><span id='RtUHI'><b id='RtUHI'><form id='RtUHI'><ins id='RtUHI'></ins><ul id='RtUHI'></ul><sub id='RtUHI'></sub></form><legend id='RtUHI'></legend><bdo id='RtUHI'><pre id='RtUHI'><center id='RtUHI'></center></pre></bdo></b><th id='RtUHI'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='RtUHI'><tfoot id='RtUHI'></tfoot><dl id='RtUHI'><fieldset id='RtUHI'></fieldset></dl></div>

        融合的位置提供者似乎沒有使用 GPS 接收器

        Fused location provider doesn#39;t seem to use GPS receiver(融合的位置提供者似乎沒有使用 GPS 接收器)
          <tbody id='4s2t1'></tbody>

          1. <i id='4s2t1'><tr id='4s2t1'><dt id='4s2t1'><q id='4s2t1'><span id='4s2t1'><b id='4s2t1'><form id='4s2t1'><ins id='4s2t1'></ins><ul id='4s2t1'></ul><sub id='4s2t1'></sub></form><legend id='4s2t1'></legend><bdo id='4s2t1'><pre id='4s2t1'><center id='4s2t1'></center></pre></bdo></b><th id='4s2t1'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='4s2t1'><tfoot id='4s2t1'></tfoot><dl id='4s2t1'><fieldset id='4s2t1'></fieldset></dl></div>
            1. <legend id='4s2t1'><style id='4s2t1'><dir id='4s2t1'><q id='4s2t1'></q></dir></style></legend><tfoot id='4s2t1'></tfoot>
              • <small id='4s2t1'></small><noframes id='4s2t1'>

                • <bdo id='4s2t1'></bdo><ul id='4s2t1'></ul>

                  本文介紹了融合的位置提供者似乎沒有使用 GPS 接收器的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  在 Moto G 上運行 Android 4.3,在 Nexus 7 2012 上運行 Android 4.4.2,在 Nexus 5 上運行 Android 4.4.2.Android Studio 0.4.

                  我不想定期接收位置更新,我只想在用戶按下按鈕時獲得準確的位置.

                  我遵循了這個例子:,也不起作用.從未調用注冊的方法.

                  我做錯了什么?

                  解決方案

                  我解決了.問題是讓 Google 應用訪問您的位置"已關閉:

                  當我打開它時,我得到 GPS 讀數,當它關閉時,我沒有.

                  我放棄了它有兩個原因:

                  1. 我正在開發一個可用于公司大量設備的應用,并且我希望最少的手動配置是必要的

                  2. 屏幕清楚地顯示此設置僅影響 Google 應用".我知道 Play Services 是 Google 軟件,但我認為 Google 不會期望最終用戶理解這一點.

                  然后我得到了 Android 4.4.2 更新,并且位置設置頁面發生了變化.看來我可以關閉 Google 位置報告,但仍然可以從融合位置提供者那里獲得 GPS 讀數:

                  所以也許 Google 意識到該設置令人困惑并對其進行了改進.不管怎樣,如果我幾天前有 4.4.2,我會節省很多時間.

                  Android 4.3 on Moto G, Android 4.4.2 on Nexus 7 2012, Android 4.4.2 on Nexus 5. Android Studio 0.4.

                  I don't want to receive regular location updates, I just want an accurate location when the user presses a button.

                  I have followed this example: https://developer.android.com/training/location/retrieve-current.html

                  In manifest file:

                  <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
                  <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
                  

                  I check that Play Services are available using GooglePlayServicesUtil.isGooglePlayServicesAvailable

                  In main activity:

                  //in activity onCreate method
                  mLocationClient = new LocationClient(this, this, this);
                  
                  @Override
                  protected void onStart() {
                      mLocationClient.connect();
                      super.onStart();
                  }
                  
                  @Override
                  protected void onStop() {
                      mLocationClient.disconnect();
                      super.onStop();
                  }
                  
                  //in button onclick method    
                  mCurrentLocation = mLocationClient.getLastLocation();
                  

                  I have no SIM card. If I enable Wifi then sometimes I get an accurate location. Other times mCurrentLocation is null.

                  If I disable Wifi then mCurrentLocation is always null.

                  I am testing outside in several locations always with a clear view of the sky. I waited three minutes in each location.

                  I never see the GPS icon appear on the Android notification bar at the top of the screen.

                  I have these location settings:

                  A GPS Test app manages to use GPS successfully indoors on the same device with Wi-Fi disabled so GPS is working:

                  Registering for location updates, as at https://developer.android.com/training/location/receive-location-updates.html, doesn't work either. Registered method never called.

                  What am I doing wrong?

                  解決方案

                  I solved it. The problem was that "Let Google apps access your location" was turned off:

                  When I turn it on I get GPS readings and when it's off I don't.

                  I had left it off for two reasons:

                  1. I'm developing an app to be used to lots of devices at a company and I want minimum manual configuration to be necessary

                  2. The screen says clearly "This setting affects Google apps only." I know that Play Services is Google software but I didn't think Google would expect an end user to understand that.

                  Then I got the Android 4.4.2 update and the location settings page has changed. It appears that I can have Google Location Reporting turned off and still get GPS readings from the fused location provider:

                  So maybe Google realised that the setting was confusing and improved it. Either way, I'd have saved a lot of time if I'd got 4.4.2 a few days ago.

                  這篇關于融合的位置提供者似乎沒有使用 GPS 接收器的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Help calculating X and Y from Latitude and Longitude in iPhone(幫助從 iPhone 中的緯度和經度計算 X 和 Y)
                  Get user#39;s current location using GPS(使用 GPS 獲取用戶的當前位置)
                  IllegalArgumentException thrown by requestLocationUpdate()(requestLocationUpdate() 拋出的 IllegalArgumentException)
                  How reliable is LocationManager#39;s getLastKnownLocation and how often is it updated?(LocationManager 的 getLastKnownLocation 有多可靠,多久更新一次?)
                  CLLocation returning negative speed(CLLocation 返回負速度)
                  How to detect Location Provider ? GPS or Network Provider(如何檢測位置提供者?GPS 或網絡提供商)
                    <tbody id='H2PJQ'></tbody>
                  <legend id='H2PJQ'><style id='H2PJQ'><dir id='H2PJQ'><q id='H2PJQ'></q></dir></style></legend>
                    <i id='H2PJQ'><tr id='H2PJQ'><dt id='H2PJQ'><q id='H2PJQ'><span id='H2PJQ'><b id='H2PJQ'><form id='H2PJQ'><ins id='H2PJQ'></ins><ul id='H2PJQ'></ul><sub id='H2PJQ'></sub></form><legend id='H2PJQ'></legend><bdo id='H2PJQ'><pre id='H2PJQ'><center id='H2PJQ'></center></pre></bdo></b><th id='H2PJQ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='H2PJQ'><tfoot id='H2PJQ'></tfoot><dl id='H2PJQ'><fieldset id='H2PJQ'></fieldset></dl></div>

                      <tfoot id='H2PJQ'></tfoot>

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

                            <bdo id='H2PJQ'></bdo><ul id='H2PJQ'></ul>
                          • 主站蜘蛛池模板: 华人黄网站大全 | 人人干免费 | 免费午夜视频在线观看 | 日本中出视频 | 欧美一级大片免费观看 | 在线观看欧美一区 | 国产一级在线观看 | 中文字幕在线一区 | 97国产超碰 | 国产精品日韩欧美一区二区 | 婷婷二区| av一二三区| 国产精品大片在线观看 | 国产日韩欧美91 | 天天玩夜夜操 | 国产 欧美 日韩 一区 | 亚洲成人第一页 | 九九爱这里只有精品 | 久草影视在线 | www.99热 | 亚洲精品区 | 色婷婷一区二区三区四区 | 国产免费一区二区三区网站免费 | 成人毛片网站 | 亚洲成人精品 | 精品久久久久久久久久久久久久 | 91免费观看视频 | 99re在线视频观看 | 成人在线免费看 | 国产精品视频网 | 可以免费看的毛片 | 精品日韩一区二区 | 久久久国产一区 | 欧美精品1区2区3区 精品国产欧美一区二区 | 91在线网| 国产精品揄拍一区二区 | 欧美影院久久 | 国产福利在线播放 | 日韩有码一区 | 亚洲在线免费观看 | 高清人人天天夜夜曰狠狠狠狠 |