久久久久久久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 有多可靠,多久更新一次?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我正在構(gòu)建一個可以在某些操作上使用用戶當(dāng)前位置的應(yīng)用.位置對用戶更有利,而不是流程的關(guān)鍵部分.我只對非常粗略的準(zhǔn)確性感興趣,它可能會偏離 5 甚至 10 英里,但仍然很有價值.一般計劃是查看網(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)用在運行,手機會自動定期更新網(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)或手機本身是否會更新網(wǎng)絡(luò)提供商的最后一個已知位置,因為手機鎖定到不同的位置手機信號塔或 wifi 網(wǎng)絡(luò).答案似乎是否定的.在強制停止我的手機上我知道與位置服務(wù)交互的所有應(yīng)用程序后,最后一個已知位置已停止更新.所以,我猜現(xiàn)在大多數(shù)手機都有可能在后臺運行一些定位服務(wù)來更新最后一個已知的位置,但手機本身不會這樣做.因此,如果最后一個已知位置太舊,我想我會采用某種形式的位置更新請求.

                  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)度計算 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'>

                            主站蜘蛛池模板: 国产一区二区三区四区五区加勒比 | 国产免费拔擦拔擦8x高清 | 成人免费三级电影 | 2019天天操 | 国产在线一区二区三区 | 亚洲日韩中文字幕一区 | 午夜资源 | 亚洲一区二区三区观看 | 午夜影院黄 | 国产综合久久久 | 一级片av| 国内精品久久久久久影视8 最新黄色在线观看 | 女人av| 91精品国产乱码久久久久久久久 | 日本又色又爽又黄的大片 | 国产欧美精品一区二区三区 | 国产精品久久免费观看 | 一级国产精品一级国产精品片 | 国产视频中文字幕在线观看 | 欧美精品一区二区蜜桃 | 搞av.com| 欧美日韩免费一区二区三区 | 日本三级在线 | 国产日韩欧美精品一区二区三区 | 中文字幕一区二区三区不卡 | 欧美综合一区二区 | 国产人成精品一区二区三 | 亚洲一区 中文字幕 | 特一级黄色毛片 | 色婷婷亚洲一区二区三区 | 亚洲自拍偷拍视频 | 久久99精品久久久久久 | 99精品国自产在线观看 | 国产成人a亚洲精品 | 国产在线激情视频 | 亚洲精品一区二区 | 国产一区二区三区日韩 | 亚洲少妇综合网 | 欧美在线一二三 | 欧美精品一区二区在线观看 | 日本三级网址 |