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

    <tfoot id='22In7'></tfoot>

    <small id='22In7'></small><noframes id='22In7'>

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

        <bdo id='22In7'></bdo><ul id='22In7'></ul>
    1. <legend id='22In7'><style id='22In7'><dir id='22In7'><q id='22In7'></q></dir></style></legend>
    2. Location.getTime() 總是返回沒有毫秒的時間戳

      Location.getTime() always returns timestamp without milliseconds(Location.getTime() 總是返回沒有毫秒的時間戳)
        <bdo id='iOBiC'></bdo><ul id='iOBiC'></ul>

          <tfoot id='iOBiC'></tfoot>

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

                  <tbody id='iOBiC'></tbody>
              • 本文介紹了Location.getTime() 總是返回沒有毫秒的時間戳的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我正在通過 LocationManager.requestLocationUpdates() 使用 LocationManager.GPS_PROVIDER 跟蹤 GPS 位置并注冊 LocationListener.

                I'm tracking GPS locations with LocationManager.requestLocationUpdates() using LocationManager.GPS_PROVIDER and registering a LocationListener.

                我的問題:

                所有經(jīng)過測試的設(shè)備(Sony neo、Sony active、Moto G)都會生成 Location 對象,這些對象在其 getTime() 中沒有幾分之一秒:

                All tested devices (Sony neo, Sony active, Moto G) produce Location objects which do not have fractions of a second in their getTime():

                <trkpt ...><time>2014-05-24T10:24:59.000Z</time></trkpt>
                <trkpt ...><time>2014-05-24T10:25:00.000Z</time></trkpt>
                <trkpt ...><time>2014-05-24T10:25:01.000Z</time></trkpt>
                <trkpt ...><time>2014-05-24T10:25:02.000Z</time></trkpt>
                <trkpt ...><time>2014-05-24T10:25:03.000Z</time></trkpt>
                

                當我計算速度、傾斜和與氣壓高度合并時,1 秒(1000 毫秒)的分辨率太不精確了.而且我不相信所有的修復(fù)都是完全.000.

                As I'm calculating speed, incline and merge with barometic altitude, 1s (1000ms) resolution is way too imprecise. And I do not believe, that the fixes are all exactly at .000.

                我的問題:

                最好將 System.currentTimeMillis() 作為我的跟蹤點的時間戳,或者 GPS 定位通常遠??遠落后于實時",并且計算出的位置實際上是來自過去(落后幾秒)?

                Is is better to take System.currentTimeMillis() as the timestamp for my track-points, or is the GPS fix generally far behind "real time" and the calculated positions are actually those from the past (several seconds behind)?

                備注:

                • 我知道在使用 GPS 數(shù)據(jù)時速度計算并不精確且相當復(fù)雜
                • 這不是 Matching Location.getTime() 毫秒到 NMEA 語句 的副本

                推薦答案

                根據(jù)我的經(jīng)驗,System.currentTimeMillis() 是一種更好的獲取時間戳的方法,這就是我正在做的事情我的應(yīng)用程序.但是,請注意,如 android 開發(fā)者網(wǎng)站所述,System.currentTimeMillis() 返回自 1970 年 1 月 1 日 00:00:00.0 UTC 以來的當前時間(以毫秒為單位) 所以它真的取決于什么你想用它.正如我所提到的,我發(fā)現(xiàn)它比其他形式的時間戳更可靠,它可能最適合您的情況.

                In my experience, System.currentTimeMillis() is a much better way to take timestamps, and it is what I am doing in my app. However, please be advised that, as stated on the android developer site, System.currentTimeMillis() Returns the current time in milliseconds since January 1, 1970 00:00:00.0 UTC so it really depends on what you want to use it for. As I mentioned though, I found it to be more reliable than other forms of timestamps and it is probably best suited for your case.

                這篇關(guān)于Location.getTime() 總是返回沒有毫秒的時間戳的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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ò)提供商)

                <small id='1ozn2'></small><noframes id='1ozn2'>

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

                      • <tfoot id='1ozn2'></tfoot>
                            <tbody id='1ozn2'></tbody>

                        1. 主站蜘蛛池模板: 日本天天操 | 99精品国产一区二区青青牛奶 | 欧美成人不卡 | 亚洲欧美中文日韩在线v日本 | 在线一级片 | 五月婷婷在线视频 | 日韩中文一区二区三区 | 中文精品视频 | 亚洲精品在线免费观看视频 | 日韩视频一区二区三区 | 国产精品日产欧美久久久久 | 色资源在线观看 | 久久久91精品国产一区二区三区 | 国产高清免费视频 | 精品久久99| 极品久久 | 久久精品国产一区二区电影 | 成人在线一区二区三区 | 欧美成人激情 | 伊人久久大香线 | 一区二区视频在线 | 日韩有码一区 | 国产高清视频在线观看 | 99精品在线观看 | 欧美在线日韩 | 爱爱小视频 | 波多野结衣先锋影音 | 久久久久国产一区二区三区四区 | 亚洲 中文 欧美 日韩 在线观看 | 日韩国产欧美视频 | 91免费在线| 中文字幕日韩欧美一区二区三区 | 亚洲日本中文字幕在线 | 久久天天躁狠狠躁夜夜躁2014 | 中文字幕一区二区三区四区 | 亚洲国产aⅴ成人精品无吗 亚洲精品久久久一区二区三区 | 羞羞在线视频 | 91精品亚洲 | 久久午夜视频 | 日韩三片 | 日韩欧美亚洲 |