久久久久久久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基站?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我們知道Android中有兩種定位模式:GPS和網(wǎng)絡(luò).如果我們使用網(wǎng)絡(luò),那么Android可以使用WIFI或2G/3G基站定位.如果沒有 GPS,我們可以簡單地使用 LocationManager.NETWORK_PROVIDER 來獲取位置數(shù)據(jù).但是我們怎么知道模式是WIFI還是2G/3G基站呢?Android 沒有為 WIFI 和信號塔提供單獨的提供程序.

                  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.

                  我想到了一個方法.但我不確定它是否正確.請查看并發(fā)表意見:

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

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

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

                  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 并沒有明確給出確定如何計算網(wǎng)絡(luò)位置的方法.網(wǎng)絡(luò)提供商的原則是收集設(shè)備上的所有相關(guān)數(shù)據(jù),然后將其全部發(fā)送到谷歌服務器,在那里計算您的位置并將其發(fā)送回您.我不確定,但網(wǎng)絡(luò)位置也可能使用加速度計/陀螺儀/羅盤數(shù)據(jù)來提高位置的準確性,尤其是當您連續(xù)計算位置時.所以我相信它可以同時使用手機信號塔和 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.

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

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

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

                  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.

                  出于好奇,你為什么需要這個?

                  Out of curiosity, why do you need this for?

                  這篇關(guān)于Android中如何知道定位模式是WIFI還是2G/3G基站?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 獲取用戶的當前位置)
                  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)絡(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. 主站蜘蛛池模板: 2019中文字幕视频 | 一区二区三区不卡视频 | 国产乱人伦| 91看片免费| 美女天天操 | 精品中文在线 | 久久成人一区 | 草久久免费视频 | 国产日韩一区二区三区 | 四虎影院美女 | 欧美片网站免费 | 色综网| 在线看av网址 | 天天色官网 | 在线成人| 国产综合精品一区二区三区 | 日韩在线播放一区 | 成人黄色av网站 | 国产精品久久久久久吹潮 | 免费在线观看黄色av | 在线一区视频 | 粉嫩av | 91免费版在线观看 | 精品一区二区三区免费视频 | 国产一二三区精品视频 | 国产一区欧美一区 | 久久精品色欧美aⅴ一区二区 | 99久久久久久 | 久久这里只有精品首页 | 亚洲综合首页 | 日本精品久久 | 看片网站在线 | 四虎最新视频 | 国产精品精品视频一区二区三区 | 日韩精品在线一区 | 久久一区精品 | 久久99国产精一区二区三区 | 全部免费毛片在线播放网站 | 北条麻妃一区二区三区在线观看 | 91正在播放 | 四虎成人av |