久久久久久久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.

                我的問題:

                所有經過測試的設備(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 毫秒)的分辨率太不精確了.而且我不相信所有的修復都是完全.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 數據時速度計算并不精確且相當復雜
                • 這不是 Matching Location.getTime() 毫秒到 NMEA 語句 的副本

                推薦答案

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

                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.

                這篇關于Location.getTime() 總是返回沒有毫秒的時間戳的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                Help calculating X and Y from Latitude and Longitude in iPhone(幫助從 iPhone 中的緯度和經度計算 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 或網絡提供商)

                <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. 主站蜘蛛池模板: 久久成人毛片 | 久久国内精品 | 成人毛片在线播放 | 18视频在线观看男男 | 69精品人人人人 | 男女啪啪免费视频 | 日韩成人中文字幕 | 手机在线看片1024 | 草草在线观看 | 日韩精品视频网站 | 国产自在线 | 国内自拍偷拍 | 小日子的在线观看免费第8集 | 免费日韩视频 | 93久久精品日日躁夜夜躁欧美 | www.男人天堂 | www.狠狠操.com | 国产精自产拍久久久久久蜜 | 久草福利在线 | 国产一级免费 | 狠狠涩| 欧美激情小视频 | 国产精品久久一区二区三区 | 中文在线观看免费网站 | 中文字幕网址在线 | 日韩理论在线 | 国产欧美精品一区二区 | 欧美网站在线观看 | 在线观看a视频 | 日韩精品在线免费观看 | 亚洲综合五月 | 日本黄色免费网站 | 一区二区三区四区视频在线观看 | 国产欧美日韩在线 | 色婷婷精品 | 欧美日韩激情 | 国产午夜免费视频 | 一级免费av| 一级黄片毛片 | 国产一区福利 | 国产成人一区 |