久久久久久久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. 在沒(méi)有活動(dòng)的情況下使用 Google 地圖位置

        Using Google Maps location without Activity(在沒(méi)有活動(dòng)的情況下使用 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>

                  本文介紹了在沒(méi)有活動(dòng)的情況下使用 Google 地圖位置的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我有一項(xiàng)服務(wù),它通過(guò)注冊(cè) LocationManager.requestLocationUpdates 來(lái)接收位置.但是有些手機(jī)出現(xiàn)了一些問(wèn)題.

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

                  當(dāng)電池電量不足時(shí),網(wǎng)絡(luò)位置提供程序會(huì)停止發(fā)送位置修復(fù)(此問(wèn)題已在 這個(gè) SO 問(wèn)題).這不僅是我的應(yīng)用程序的問(wèn)題,而且其他應(yīng)用程序也只是停止接收位置.即使手機(jī)已充電,問(wèn)題仍然存在,直到完全重新啟動(dòng).

                  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ā)現(xiàn)(并且有人在上面的 SO 問(wèn)題中也提到過(guò))Google 地圖仍然不斷接收位置更新 - 當(dāng)我打開(kāi) Google 地圖應(yīng)用時(shí),它會(huì)顯示正確的位置和更新.

                  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 中的位置的解決方法.我完全沒(méi)有使用 Maps API 的經(jīng)驗(yàn),但它似乎需要一個(gè)適當(dāng)?shù)?GUI (Activity) 應(yīng)用程序才能使用.還是我錯(cuò)了?是否有可能使用 Google Maps API 甚至在服務(wù)內(nèi)接收位置?

                  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?

                  推薦答案

                  鑒于可靠來(lái)源的一些廣泛測(cè)試,我相信您可能需要考慮使用 Google Play 服務(wù)提供的 FusedLocationProvider.選擇合適的功率標(biāo)準(zhǔn)等似乎讓您頭疼.

                  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.

                  請(qǐng)注意,這將要求用戶必須在其設(shè)備上安裝 Google Play,因此 Kindle 等設(shè)備將無(wú)法使用.它還需要至少 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.

                  有關(guān) Google Play 服務(wù)提供的定位服務(wù)的更多信息,請(qǐng)參閱這里.

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

                  這篇關(guān)于在沒(méi)有活動(dòng)的情況下使用 Google 地圖位置的文章就介紹到這了,希望我們推薦的答案對(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ò)提供商)
                  <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污在线 | 久久9视频 | 天天操网| 日本三级电影免费 | 99av成人精品国语自产拍 | 最新国产在线 | 极品电影院 | 男人的天堂久久 | 欧洲一区视频 | av一区二区在线观看 | 亚洲国产欧美日韩 | 91视频免费黄 | 欧美日韩国产中文 | 日韩中文一区二区三区 | 久久精品一区二区三区四区 | 成年网站在线观看 | 亚洲第一视频网 | 国产精品免费一区二区 | 国产精品视频网站 | 91视视频在线观看入口直接观看 | 毛片一级黄色 | 一区二区三区四区在线视频 | 九色 在线 | 日韩欧美在线一区 | 午夜精品网站 | 亚洲午夜精品一区二区三区他趣 | 国产精品久久久久久久久久免费看 | 午夜欧美一区二区三区在线播放 | 免费观看一区二区三区毛片 | 精品视频一区二区在线观看 | 欧美精品一区三区 | 日本中文在线视频 | 九九导航 | 欧美黄色网| 久久九精品 | 超碰av人人| 日本精品视频 | 国产福利视频在线观看 | 欧美午夜精品久久久久久浪潮 | 国产精品亚洲一区 |