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

  • <small id='3T4fP'></small><noframes id='3T4fP'>

  • <legend id='3T4fP'><style id='3T4fP'><dir id='3T4fP'><q id='3T4fP'></q></dir></style></legend>

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

      <tfoot id='3T4fP'></tfoot>
        • <bdo id='3T4fP'></bdo><ul id='3T4fP'></ul>
      1. LocationManager 的 getLastKnownLocation 有多可靠,多久更

        How reliable is LocationManager#39;s getLastKnownLocation and how often is it updated?(LocationManager 的 getLastKnownLocation 有多可靠,多久更新一次?)

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

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

            <tbody id='YQum3'></tbody>

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

        • <legend id='YQum3'><style id='YQum3'><dir id='YQum3'><q id='YQum3'></q></dir></style></legend>
            • <tfoot id='YQum3'></tfoot>

                • 本文介紹了LocationManager 的 getLastKnownLocation 有多可靠,多久更新一次?的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我正在構(gòu)建一個可以在某些操作上使用用戶當(dāng)前位置的應(yīng)用.位置對用戶更有利,而不是流程的關(guān)鍵部分.我只對非常粗略的準(zhǔn)確性感興趣,它可能會偏離 5 甚至 10 英里,但仍然很有價(jià)值.一般計(jì)劃是查看網(wǎng)絡(luò)提供商是否已啟用,然后就這樣做

                  I am building an app that can use a user's current location on certain actions. Location is more of a benefit to the user rather than a critical part of the process. I'm only interested in very rough accuracy and it can be off by 5 or even 10 miles and still be of value. General plan was to see if the network provider was enabled and then just do

                  locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER)
                  

                  假設(shè)沒有其他應(yīng)用在運(yùn)行,手機(jī)會自動定期更新網(wǎng)絡(luò)位置嗎?IE.此代碼可能總是會返回一個滿足我需要的值?

                  Assuming that no other apps are running, will the phone automatically periodically update the network location? I.e. there will likely always be a value returned by this code which will meet my needs?

                  我一直在做更多的研究,我認(rèn)為我在這里真正想問的問題是,Android 操作系統(tǒng)或手機(jī)本身是否會更新網(wǎng)絡(luò)提供商的最后一個已知位置,因?yàn)槭謾C(jī)鎖定到不同的位置手機(jī)信號塔或 wifi 網(wǎng)絡(luò).答案似乎是否定的.在強(qiáng)制停止我的手機(jī)上我知道與位置服務(wù)交互的所有應(yīng)用程序后,最后一個已知位置已停止更新.所以,我猜現(xiàn)在大多數(shù)手機(jī)都有可能在后臺運(yùn)行一些定位服務(wù)來更新最后一個已知的位置,但手機(jī)本身不會這樣做.因此,如果最后一個已知位置太舊,我想我會采用某種形式的位置更新請求.

                  I've been doing a bit more research and I think the question I was really trying to ask here was if the Android operating system or the phone itself would update the last known location for the network provider as the phone locked onto different cell phone towers or wifi networks. The answer appears to be no. After force stopping all apps on my phone which I know to interaction with location services, the last known location has stopped updating. So, I'm guessing that these days chances are that most phones will have some location services running in the background updating the last known location but the phone itself won't do it. Hence I think I'll be going with some form of requesting location updates if the last known location is too old.

                  推薦答案

                  getLastKnownLocation() 只返回最后的修復(fù).因此,如果沒有更新位置提供程序,則 getLastKnownLocation() 的返回值不會改變.位置對象還將為您提供修復(fù)的準(zhǔn)確性和時間.

                  getLastKnownLocation() only returns the last fix. So if no location providers are being updated the return value of getLastKnownLocation() will not change. The location object will also provide you with accuracy and time of the fix.

                  我會查看這篇文章以獲取更多信息.您可以使用某個版本的一次性拍攝位置.

                  I would look at this post for more information. You could use some version of the one shot location.

                  http://android-developers.blogspot.com/2011/06/deep-dive-into-location.html

                  這篇關(guān)于LocationManager 的 getLastKnownLocation 有多可靠,多久更新一次?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  Help calculating X and Y from Latitude and Longitude in iPhone(幫助從 iPhone 中的緯度和經(jīng)度計(jì)算 X 和 Y)
                  Get user#39;s current location using GPS(使用 GPS 獲取用戶的當(dāng)前位置)
                  IllegalArgumentException thrown by requestLocationUpdate()(requestLocationUpdate() 拋出的 IllegalArgumentException)
                  CLLocation returning negative speed(CLLocation 返回負(fù)速度)
                  How to detect Location Provider ? GPS or Network Provider(如何檢測位置提供者?GPS 或網(wǎng)絡(luò)提供商)
                  Locations in Core Data sorted by distance via NSFetchedResultsController?(通過 NSFetchedResultsController 按距離排序的核心數(shù)據(jù)中的位置?)
                  <legend id='kIUDi'><style id='kIUDi'><dir id='kIUDi'><q id='kIUDi'></q></dir></style></legend>
                    <tbody id='kIUDi'></tbody>

                      <tfoot id='kIUDi'></tfoot>

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

                            主站蜘蛛池模板: 韩日精品视频 | 成年女人毛片 | 成人亚洲天堂 | 国产在线成人 | 香蕉视频在线观看网站 | 欧美精品在线播放 | 一级特黄妇女高潮 | 国产精品一区二区不卡 | 黄色国产网站 | av黄色在线 | 国产精品免费一区二区三区 | 欧美日韩亚洲一区二区 | 夜夜草av| 国产精品久久久久久久久借妻 | 欧美久久久久久久 | 在线观看网址你懂的 | 性色av一区二区三区 | 激情小说在线视频 | 国产成人精品视频 | 国产精品久久久久久久久久辛辛 | 国产在线www | 五月天激情国产综合婷婷婷 | 日韩视频在线免费观看 | 欧美 日韩 国产 成人 在线 | 日韩黄色大片 | 岛国精品在线播放 | 精品免费国产一区二区三区四区 | 亚洲图片一区二区 | 亚洲欧洲天堂 | 日本www视频 | 国产一级在线 | 激情五月综合 | 欧美一区二区三区的 | 老司机午夜视频 | 国产香蕉av | 日韩久久网 | 在线色网 | 五月婷婷丁香综合 | 日韩黄网 | 国产精品欧美精品 | wwwav在线 |