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

                  問題描述

                  我正在構(gòu)建一個(gè)可以在某些操作上使用用戶當(dāng)前位置的應(yīng)用.位置對(duì)用戶更有利,而不是流程的關(guān)鍵部分.我只對(duì)非常粗略的準(zhǔn)確性感興趣,它可能會(huì)偏離 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ī)會(huì)自動(dòng)定期更新網(wǎng)絡(luò)位置嗎?IE.此代碼可能總是會(huì)返回一個(gè)滿足我需要的值?

                  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ī)本身是否會(huì)更新網(wǎng)絡(luò)提供商的最后一個(gè)已知位置,因?yàn)槭謾C(jī)鎖定到不同的位置手機(jī)信號(hào)塔或 wifi 網(wǎng)絡(luò).答案似乎是否定的.在強(qiáng)制停止我的手機(jī)上我知道與位置服務(wù)交互的所有應(yīng)用程序后,最后一個(gè)已知位置已停止更新.所以,我猜現(xiàn)在大多數(shù)手機(jī)都有可能在后臺(tái)運(yùn)行一些定位服務(wù)來更新最后一個(gè)已知的位置,但手機(jī)本身不會(huì)這樣做.因此,如果最后一個(gè)已知位置太舊,我想我會(huì)采用某種形式的位置更新請(qǐng)求.

                  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() 的返回值不會(huì)改變.位置對(duì)象還將為您提供修復(fù)的準(zhǔn)確性和時(shí)間.

                  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.

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

                  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 有多可靠,多久更新一次?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(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(如何檢測(cè)位置提供者?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 | 欧美精品v国产精品v日韩精品 | 特黄特色大片免费视频观看 | 国产一区二区麻豆 | 亚洲天堂免费在线 | 久久视频精品 | 91精品一区二区三区久久久久久 | 毛片1| 在线小视频 | 国产精品高潮呻吟久久aⅴ码 | 国产精品中文字幕在线播放 | 在线国产一区二区 | 久久99精品久久久久久琪琪 | 日韩在线综合 | 蜜桃视频在线观看免费视频网站www | 久久久91| 99久久久久久久 | 成人免费看片又大又黄 | 性色网站 | 蜜桃一区| 国产一区二区影院 | 中文字幕久久精品 | 欧美成人一区二区三区 | 欧美日韩国产一区二区三区 | 狠狠干美女 | 欧美视频精品 | 久草在线免费资源 | 在线精品亚洲欧美日韩国产 | 国产 欧美 日韩 一区 | 国产精品日韩欧美一区二区三区 | 蜜桃av一区二区三区 | 国产一区 | 亚洲国产欧美在线 | 久久99视频免费观看 | 欧美日韩一卡 | 狠狠狠干| 亚洲伊人久久综合 |