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

  • <tfoot id='wbQoI'></tfoot>
        <bdo id='wbQoI'></bdo><ul id='wbQoI'></ul>
      <legend id='wbQoI'><style id='wbQoI'><dir id='wbQoI'><q id='wbQoI'></q></dir></style></legend>

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

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

      1. NETWORK_PROVIDER 未提供更新的位置

        NETWORK_PROVIDER not providing updated locations(NETWORK_PROVIDER 未提供更新的位置)
        <i id='MSE5t'><tr id='MSE5t'><dt id='MSE5t'><q id='MSE5t'><span id='MSE5t'><b id='MSE5t'><form id='MSE5t'><ins id='MSE5t'></ins><ul id='MSE5t'></ul><sub id='MSE5t'></sub></form><legend id='MSE5t'></legend><bdo id='MSE5t'><pre id='MSE5t'><center id='MSE5t'></center></pre></bdo></b><th id='MSE5t'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='MSE5t'><tfoot id='MSE5t'></tfoot><dl id='MSE5t'><fieldset id='MSE5t'></fieldset></dl></div>

                <bdo id='MSE5t'></bdo><ul id='MSE5t'></ul>
                <legend id='MSE5t'><style id='MSE5t'><dir id='MSE5t'><q id='MSE5t'></q></dir></style></legend>
              • <small id='MSE5t'></small><noframes id='MSE5t'>

                    <tbody id='MSE5t'></tbody>
                  <tfoot id='MSE5t'></tfoot>
                • 本文介紹了NETWORK_PROVIDER 未提供更新的位置的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  LocationManager locationManager = (LocationManager)getApp().getSystemService(Context.LOCATION_SERVICE); //getApp() returns my Application object
                  locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER , 1, 1, this);
                  locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 1, 1, this);
                  

                  這就是我用來收聽的代碼.啟用 GPS 后,一切正常.但是,如果我禁用 GPS 并依賴網絡位置,它會給我帶來陳舊的結果——在這種情況下,是兩天前的結果.我無法讓它更新.調用 getLastKnownLocation 會返回相同的陳舊結果.

                  That's the code I'm using to listen. With GPS enabled, everything works fine. However, if I disable GPS and rely on network location, it gives me stale results -- in this case, from two days ago. I cannot get it to update. Calling getLastKnownLocation returns the same stale results.

                  Google 地圖更新正常,所以我知道這不是硬件/系統配置問題.

                  Google Maps updates just fine, so I know it's not a hardware/system configuration problem.

                  我在 Google 上四處搜索,發現一些人有類似的問題,但沒有答案.我嘗試將我的項目定位到 API 級別 8 (2.2) 和 15 (4.0.3).結果相同.我的手機正在運行 ICS.

                  I've Googled around, and found a few people with similar problems, but no answers. I've tried targeting my project to API level 8 (2.2) as well as 15 (4.0.3). Same results. My phone is running ICS.

                  我還嘗試刪除對 GPS_PROVIDER 的請求,以及在 getAllProviders() 中包含對所有內容的請求.同樣的交易.

                  I've also tried removing the request for GPS_PROVIDER, as well as including requests for everything in getAllProviders(). Same deal.

                  知道為什么 NETWORK_PROVIDER 沒有更新嗎?任何幫助將不勝感激.

                  Any idea why NETWORK_PROVIDER is not updating? Any help would be greatly appreciated.

                  (附注:不,我通常不使用1, 1"作為時間/距離參數;我只是在調試時更改了它.)

                  (P.S. No, I don't I normally use "1, 1" as my time/distance parameters; I just changed it while debugging this.)

                  我忘了說是的,isProviderEnabled() 返回 true.

                  I forgot to mention that yes, isProviderEnabled() returns true.

                  推薦答案

                  我終于找到了解決這個問題的方法(見 我的問題在這里).

                  I finally found a way to solve this problem (see my question here).

                  在我的 S3 Galaxy Mini 上,有類似的癥狀(在重新啟動之前沒有位置更新......),就像上面描述的那樣.大多數情況下,當設備達到低電量條件時,位置信息就會停止更新,但有時即使手機充滿電,也會發生這種情況.顯然這是 LocationManager 中某處的問題.我設法通過使用新的 Google Play 服務 API 來繞過 LocationManager 位置(LocationClient 類).

                  In my case on S3 Galaxy Mini there were similar symptoms (no location updates until reboot...) like the ones described above. Location in most cases stopped updating when the device reached low power conditions, but sometimes it just happened even when the phone was fully charged. Obviously this is a problem somewhere in the LocationManager. I managed to bypass LocationManager by using the new Google Play Services API for locations (LocationClient class).

                  這可能是位置更新仍然適用于 Google 地圖的原因,因為 Google 地圖甚至在公開之前就使用了 Google Play Services API.

                  This is probably the reason why the location updates were still working with Google Maps, because Google Maps were using Google Play Services API even before it was made public.

                  我建議您關注 此鏈接如果遇到此問題,如何使用 Play Services API 獲取位置,而不是使用 LocationManager.

                  I recommend you to follow this link which shows the way how to use Play Services API to get locations instead of using LocationManager if you encounter this problem.

                  我正在使用 Play Services 運行位置更新,并且絕對沒有這樣的問題 - 我隨時都會收到定期的位置更新.

                  Im running location updates with Play Services and there were absolutely no problems like this anymore - I keep receiving regular location updates anytime.

                  請注意,這將要求用戶必須在其設備上安裝 Google Play,因此 Kindle 等設備將無法使用.它還需要至少 Android 2.2.

                  Beware that this will require that the user must have Google Play installed on their device, so Kindles and the like will be out of the picture. It also requires a minimum of Android 2.2.

                  這篇關于NETWORK_PROVIDER 未提供更新的位置的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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='OIZp1'></tbody>

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

                    • <i id='OIZp1'><tr id='OIZp1'><dt id='OIZp1'><q id='OIZp1'><span id='OIZp1'><b id='OIZp1'><form id='OIZp1'><ins id='OIZp1'></ins><ul id='OIZp1'></ul><sub id='OIZp1'></sub></form><legend id='OIZp1'></legend><bdo id='OIZp1'><pre id='OIZp1'><center id='OIZp1'></center></pre></bdo></b><th id='OIZp1'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='OIZp1'><tfoot id='OIZp1'></tfoot><dl id='OIZp1'><fieldset id='OIZp1'></fieldset></dl></div>
                        • <bdo id='OIZp1'></bdo><ul id='OIZp1'></ul>
                        • <tfoot id='OIZp1'></tfoot>
                          <legend id='OIZp1'><style id='OIZp1'><dir id='OIZp1'><q id='OIZp1'></q></dir></style></legend>
                            主站蜘蛛池模板: 国产毛片久久久久久久久春天 | 午夜精品久久久久久久久久久久久 | 久久久久久国产精品 | 国产精品久久久久久吹潮日韩动画 | 成人小视频在线 | 亚洲一区二区三区免费视频 | 亚洲aⅴ| 久久国产精品首页 | 二区中文字幕 | 久久午夜剧场 | 国产精品日韩高清伦字幕搜索 | 亚洲一区三区在线观看 | 成人在线观看中文字幕 | 七七婷婷婷婷精品国产 | 国产网站在线播放 | 亚洲性视频网站 | 久久久毛片 | 日韩亚洲一区二区 | 欧美日韩一区二区电影 | av免费网址 | 国产精品永久久久久久久www | 99国产精品视频免费观看一公开 | 国产午夜精品理论片a大结局 | 亚洲一区av | 日一区二区 | 免费一区二区 | 一级片在线免费播放 | 亚洲+变态+欧美+另类+精品 | 欧美性a视频 | 国产精品久久久久久久久久免费看 | 免费三级黄 | jlzzjlzz国产精品久久 | 色噜噜色综合 | 91se在线| 黄频免费 | www.色.com| 成人做爰9片免费看网站 | 国产情侣激情 | 久久99精品久久久久久琪琪 | 中文字幕 在线观看 | 国产午夜精品久久 |