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

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

    1. <tfoot id='l7UZj'></tfoot>
    2. <legend id='l7UZj'><style id='l7UZj'><dir id='l7UZj'><q id='l7UZj'></q></dir></style></legend>

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

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

        Android中如何知道定位模式是WIFI還是2G/3G基站?

        How to know the positioning mode is WIFI or 2G/3G cell tower in Android?(Android中如何知道定位模式是WIFI還是2G/3G基站?)
              <tbody id='cb0rH'></tbody>

                <bdo id='cb0rH'></bdo><ul id='cb0rH'></ul>
                <legend id='cb0rH'><style id='cb0rH'><dir id='cb0rH'><q id='cb0rH'></q></dir></style></legend>

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

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

                • 本文介紹了Android中如何知道定位模式是WIFI還是2G/3G基站?的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我們知道Android中有兩種定位模式:GPS和網(wǎng)絡(luò).如果我們使用網(wǎng)絡(luò),那么Android可以使用WIFI或2G/3G基站定位.如果沒(méi)有 GPS,我們可以簡(jiǎn)單地使用 LocationManager.NETWORK_PROVIDER 來(lái)獲取位置數(shù)據(jù).但是我們?cè)趺粗滥J绞荳IFI還是2G/3G基站呢?Android 沒(méi)有為 WIFI 和信號(hào)塔提供單獨(dú)的提供程序.

                  We know there are two positioning mode in Android: GPS and network. If we use network, then Android can use WIFI or 2G/3G cell tower to position. Without GPS, we can simply use LocationManager.NETWORK_PROVIDER to get the location data. But how can we know the mode is WIFI or 2G/3G cell tower exactly? Android doesn't provide separate providers for WIFI and cell tower.

                  我想到了一個(gè)方法.但我不確定它是否正確.請(qǐng)查看并發(fā)表意見(jiàn):

                  I have thought a method. But I am not sure whether it is correct. Please review and give comments:

                  1. 查看能否獲取WIFI熱點(diǎn)列表.如果列表中沒(méi)有任何內(nèi)容,則必須使用手機(jī)信號(hào)塔.
                  2. 如果有一些WIFI熱點(diǎn),并且精度很高(<=100m),那么很可能使用了WIFI.如果準(zhǔn)確率低,是否還在使用手機(jī)信號(hào)塔?

                  據(jù)我了解,WIFI定位的準(zhǔn)確率是比較高的.但它的準(zhǔn)確度的正常范圍是多少?另一個(gè)問(wèn)題,Android 是否同時(shí)使用 WIFI 和信號(hào)塔?如果是這樣,那么在我的應(yīng)用程序中,我可以認(rèn)為它使用的是 WIFI,而不是手機(jī)信號(hào)塔.

                  In my understanding, the accuracy of WIFI positioning is relatively high. But what's the normal range of the accuracy for it? Another question, does Android use WIFI and cell tower at the same time? If it does, then in my application, I can think it use WIFI, not cell tower.

                  謝謝!

                  推薦答案

                  這是正確的,Android 并沒(méi)有明確給出確定如何計(jì)算網(wǎng)絡(luò)位置的方法.網(wǎng)絡(luò)提供商的原則是收集設(shè)備上的所有相關(guān)數(shù)據(jù),然后將其全部發(fā)送到谷歌服務(wù)器,在那里計(jì)算您的位置并將其發(fā)送回您.我不確定,但網(wǎng)絡(luò)位置也可能使用加速度計(jì)/陀螺儀/羅盤(pán)數(shù)據(jù)來(lái)提高位置的準(zhǔn)確性,尤其是當(dāng)您連續(xù)計(jì)算位置時(shí).所以我相信它可以同時(shí)使用手機(jī)信號(hào)塔和 Wifi 信息.

                  This is correct, Android does not explicitely give a way to determine how the network location is computed. The principle of the network provider is to collect all the relevant data on the device, and then send it all to the Google servers, where your location is computed and sent back to you. I am not sure, but the network location might also use the accelerometer/gyro/compass data to improve the accuracy of the location, especially when you compute your location continuously. So I believe it can use simultaneously cell tower and Wifi info.

                  您的準(zhǔn)確度方法應(yīng)該適用于大多數(shù)情況,但并非 100% 可靠.

                  Your accuracy method should work in most cases, but is not 100% reliable.

                  另一種可能性是關(guān)閉 wifi,計(jì)算第一個(gè)位置修復(fù),然后再次打開(kāi)并再次嘗試.通過(guò)比較這兩個(gè)位置及其準(zhǔn)確度估計(jì),您大概可以猜出 wifi 對(duì)您當(dāng)前位置的定位引擎的影響.

                  Another possibility is to turn the wifi off, compute a first location fix, then turn it on again and give it another try. by comparing the two locations and their accuracy estimates, you can probably guess the influence of wifi on the location engine at your current location.

                  出于好奇,你為什么需要這個(gè)?

                  Out of curiosity, why do you need this for?

                  這篇關(guān)于Android中如何知道定位模式是WIFI還是2G/3G基站?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(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)
                  How reliable is LocationManager#39;s getLastKnownLocation and how often is it updated?(LocationManager 的 getLastKnownLocation 有多可靠,多久更新一次?)
                  CLLocation returning negative speed(CLLocation 返回負(fù)速度)
                  How to detect Location Provider ? GPS or Network Provider(如何檢測(cè)位置提供者?GPS 或網(wǎng)絡(luò)提供商)
                  <i id='uKXOO'><tr id='uKXOO'><dt id='uKXOO'><q id='uKXOO'><span id='uKXOO'><b id='uKXOO'><form id='uKXOO'><ins id='uKXOO'></ins><ul id='uKXOO'></ul><sub id='uKXOO'></sub></form><legend id='uKXOO'></legend><bdo id='uKXOO'><pre id='uKXOO'><center id='uKXOO'></center></pre></bdo></b><th id='uKXOO'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='uKXOO'><tfoot id='uKXOO'></tfoot><dl id='uKXOO'><fieldset id='uKXOO'></fieldset></dl></div>
                    <tbody id='uKXOO'></tbody>

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

                  <tfoot id='uKXOO'></tfoot>
                        • <bdo id='uKXOO'></bdo><ul id='uKXOO'></ul>

                          1. <legend id='uKXOO'><style id='uKXOO'><dir id='uKXOO'><q id='uKXOO'></q></dir></style></legend>
                          2. 主站蜘蛛池模板: 色播av | 国产一级免费视频 | 久草资源网站 | 欧美一级毛片免费观看 | 久久精品一| 日韩av在线免费 | 可以看黄的视频 | 亚洲国产成人久久久 | 在线观看特色大片免费网站 | 91视频18| 欧美日韩在线一区二区 | 亚洲高清免费视频 | 国产午夜精品理论片a大结局 | 国产精品国产精品国产专区不蜜 | 欧美日韩亚洲一区 | 国产成人精品午夜 | 国产精品99久久久精品免费观看 | 国产成人久久 | 国产精品国产自产拍高清 | 中文字幕免费视频 | 久久国产精品-国产精品 | 国外成人在线视频 | 亚洲精品自在在线观看 | 69av网 | 久久99精品久久 | 天天爱av | 中文字幕精品一区二区三区精品 | 欧美精品综合 | 天天久久 | 蜜桃一区二区三区 | 日本精品一区 | 欧美2区 | 国产91久久久久 | 99re在线播放 | k8久久久一区二区三区 | 亚洲欧美日本在线 | 精久久 | 国产精久久久久久 | 亚洲人免费视频 | 色婷婷av99xx | 欧美成人h版在线观看 |