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

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

          <bdo id='mU86f'></bdo><ul id='mU86f'></ul>
      3. 在沒有活動的情況下使用 Google 地圖位置

        Using Google Maps location without Activity(在沒有活動的情況下使用 Google 地圖位置)

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

          1. <legend id='msnQ3'><style id='msnQ3'><dir id='msnQ3'><q id='msnQ3'></q></dir></style></legend>
              • <bdo id='msnQ3'></bdo><ul id='msnQ3'></ul>

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

                  本文介紹了在沒有活動的情況下使用 Google 地圖位置的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我有一項服務,它通過注冊 LocationManager.requestLocationUpdates 來接收位置.但是有些手機出現了一些問題.

                  I have a service which receives locations through registering a LocationManager.requestLocationUpdates. But there have been some issues on some phones.

                  當電池電量不足時,網絡位置提供程序會停止發(fā)送位置修復(此問題已在 這個 SO 問題).這不僅是我的應用程序的問題,而且其他應用程序也只是停止接收位置.即使手機已充電,問題仍然存在,直到完全重新啟動.

                  When battery runs low, the network location provider stops sending location fixes (this problem is addressed in this SO question). It's not a only a problem with my app but also the other apps just stop receiving locations. Even when the phone is recharged the problem persists until the full reboot.

                  但是,我發(fā)現(并且有人在上面的 SO 問題中也提到過)Google 地圖仍然不斷接收位置更新 - 當我打開 Google 地圖應用時,它會顯示正確的位置和更新.

                  However, I found out (and someone also mentioned it in the SO question above) that Google Maps still keeps receiving location updates - when I open Google Maps app it shows the correct location and updates.

                  所以我正在考慮使用 Google Maps API 中的位置的解決方法.我完全沒有使用 Maps API 的經驗,但它似乎需要一個適當的 GUI (Activity) 應用程序才能使用.還是我錯了?是否有可能使用 Google Maps API 甚至在服務內接收位置?

                  So I was thinking about a workaround of using locations from Google Maps API. I have absolutely no experience with the Maps API, but it seems that it needs a proper GUI (Activity) application to be used with. Or am I wrong? Is there a possibility to use Google Maps API to receive locations even within the Service?

                  推薦答案

                  鑒于可靠來源的一些廣泛測試,我相信您可能需要考慮使用 Google Play 服務提供的 FusedLocationProvider.選擇合適的功率標準等似乎讓您頭疼.

                  Given some extensive testing from a reliable source, I believe that you might want to consider using the FusedLocationProvider supplied with Google Play Services. It seems to take the headache out of choosing the appropriate power criteria and so on.

                  請注意,這將要求用戶必須在其設備上安裝 Google Play,因此 Kindle 等設備將無法使用.它還需要至少 Android 2.2.

                  Be aware that this will require that the user must have Google Play installed on their device, so Kindles and the like will be out of the picture. It also requires a minimum of Android 2.2.

                  有關 Google Play 服務提供的定位服務的更多信息,請參閱這里.

                  Some more information about the location services provided by Google Play Services can be found here.

                  這篇關于在沒有活動的情況下使用 Google 地圖位置的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 或網絡提供商)
                  <legend id='DxB5k'><style id='DxB5k'><dir id='DxB5k'><q id='DxB5k'></q></dir></style></legend>

                    <tbody id='DxB5k'></tbody>

                  1. <small id='DxB5k'></small><noframes id='DxB5k'>

                    • <bdo id='DxB5k'></bdo><ul id='DxB5k'></ul>
                      <tfoot id='DxB5k'></tfoot>
                        1. <i id='DxB5k'><tr id='DxB5k'><dt id='DxB5k'><q id='DxB5k'><span id='DxB5k'><b id='DxB5k'><form id='DxB5k'><ins id='DxB5k'></ins><ul id='DxB5k'></ul><sub id='DxB5k'></sub></form><legend id='DxB5k'></legend><bdo id='DxB5k'><pre id='DxB5k'><center id='DxB5k'></center></pre></bdo></b><th id='DxB5k'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='DxB5k'><tfoot id='DxB5k'></tfoot><dl id='DxB5k'><fieldset id='DxB5k'></fieldset></dl></div>
                            主站蜘蛛池模板: 91精品国产乱码麻豆白嫩 | 激情影院久久 | 国产成人精品一区二区三区网站观看 | 黄视频网址| 在线播放国产一区二区三区 | 成人免费视频在线观看 | 欧美中文字幕一区二区三区亚洲 | 一级欧美视频 | 欧美黑人体内she精在线观看 | 国产精品中文字幕在线 | 国内av在线 | 蜜臀久久99精品久久久久久宅男 | 欧美精品一二三 | 亚洲一区有码 | 国产精品免费看 | 国产区在线观看 | 亚洲日韩中文字幕一区 | 欧美久久久久 | 欧美区日韩区 | 国产精品视频一二三区 | 久久精品国产一区二区三区不卡 | 亚洲精品久久久一区二区三区 | 欧美精品久久久 | 久久久久国产一级毛片高清网站 | 最近中文字幕第一页 | 亚洲精品一区二区三区中文字幕 | 天天操网| 做a的各种视频 | 91在线看网站 | 国产在线一区二区三区 | 在线免费观看视频你懂的 | 日本欧美黄色片 | 性xxxxx | 欧美在线一区视频 | 久久久久国产一级毛片高清网站 | 国产精品久久久久无码av | 国产精品久久久久av | 99在线资源 | 91国在线视频 | 天天操欧美 | av一区二区在线观看 |