久久久久久久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 并依賴網(wǎng)絡位置,它會給我?guī)黻惻f的結果——在這種情況下,是兩天前的結果.我無法讓它更新.調(diào)用 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 地圖更新正常,所以我知道這不是硬件/系統(tǒng)配置問題.

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

                  我在 Google 上四處搜索,發(fā)現(xiàn)一些人有類似的問題,但沒有答案.我嘗試將我的項目定位到 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() 中包含對所有內(nèi)容的請求.同樣的交易.

                  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"作為時間/距離參數(shù);我只是在調(diào)試時更改了它.)

                  (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 上,有類似的癥狀(在重新啟動之前沒有位置更新......),就像上面描述的那樣.大多數(shù)情況下,當設備達到低電量條件時,位置信息就會停止更新,但有時即使手機充滿電,也會發(fā)生這種情況.顯然這是 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模板網(wǎng)!

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

                  相關文檔推薦

                  Help calculating X and Y from Latitude and Longitude in iPhone(幫助從 iPhone 中的緯度和經(jīng)度計算 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 或網(wǎng)絡提供商)

                      <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>
                            主站蜘蛛池模板: 久久精品高清视频 | 国产日韩精品一区 | 亚洲精品一区二区在线观看 | 日韩视频国产 | 日本不卡一区 | 欧美jizzhd精品欧美巨大免费 | 国产成人精品久久久 | 国产精品久久久久不卡 | 福利片一区二区 | 成人av播放 | 亚洲一区在线日韩在线深爱 | 亚洲欧美成人 | 欧美一级视频免费看 | 亚洲成人一区二区 | 亚洲综合色自拍一区 | 久草免费视 | 亚洲日本欧美日韩高观看 | 国精品一区 | 国产免费一二三区 | h片在线观看免费 | 欧美一区二区综合 | 日本精品一区二区三区视频 | 欧美黄色一级毛片 | 成人午夜精品 | 区一区二在线观看 | 午夜影院在线观看 | 婷婷国产一区二区三区 | 国产成人一区二区三区 | 特黄色毛片 | 国产一区二区三区四区 | 亚洲精品一区二区在线观看 | 亚洲欧美综合精品久久成人 | 久久国产精品亚洲 | 91社区在线观看播放 | 亚洲国产aⅴ成人精品无吗 国产精品永久在线观看 | 国产成人精品一区二区三区四区 | 国产精品一区二区三区在线 | 国产成人网 | 国产偷录叫床高潮录音 | av毛片在线| 日本不卡在线观看 |