pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

    <bdo id='RtUHI'></bdo><ul id='RtUHI'></ul>
<legend id='RtUHI'><style id='RtUHI'><dir id='RtUHI'><q id='RtUHI'></q></dir></style></legend>

  • <tfoot id='RtUHI'></tfoot>
  • <small id='RtUHI'></small><noframes id='RtUHI'>

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

        融合的位置提供者似乎沒有使用 GPS 接收器

        Fused location provider doesn#39;t seem to use GPS receiver(融合的位置提供者似乎沒有使用 GPS 接收器)
          <tbody id='4s2t1'></tbody>

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

                • <bdo id='4s2t1'></bdo><ul id='4s2t1'></ul>

                  本文介紹了融合的位置提供者似乎沒有使用 GPS 接收器的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  在 Moto G 上運行 Android 4.3,在 Nexus 7 2012 上運行 Android 4.4.2,在 Nexus 5 上運行 Android 4.4.2.Android Studio 0.4.

                  我不想定期接收位置更新,我只想在用戶按下按鈕時獲得準確的位置.

                  我遵循了這個例子:,也不起作用.從未調用注冊的方法.

                  我做錯了什么?

                  解決方案

                  我解決了.問題是讓 Google 應用訪問您的位置"已關閉:

                  當我打開它時,我得到 GPS 讀數,當它關閉時,我沒有.

                  我放棄了它有兩個原因:

                  1. 我正在開發一個可用于公司大量設備的應用,并且我希望最少的手動配置是必要的

                  2. 屏幕清楚地顯示此設置僅影響 Google 應用".我知道 Play Services 是 Google 軟件,但我認為 Google 不會期望最終用戶理解這一點.

                  然后我得到了 Android 4.4.2 更新,并且位置設置頁面發生了變化.看來我可以關閉 Google 位置報告,但仍然可以從融合位置提供者那里獲得 GPS 讀數:

                  所以也許 Google 意識到該設置令人困惑并對其進行了改進.不管怎樣,如果我幾天前有 4.4.2,我會節省很多時間.

                  Android 4.3 on Moto G, Android 4.4.2 on Nexus 7 2012, Android 4.4.2 on Nexus 5. Android Studio 0.4.

                  I don't want to receive regular location updates, I just want an accurate location when the user presses a button.

                  I have followed this example: https://developer.android.com/training/location/retrieve-current.html

                  In manifest file:

                  <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
                  <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
                  

                  I check that Play Services are available using GooglePlayServicesUtil.isGooglePlayServicesAvailable

                  In main activity:

                  //in activity onCreate method
                  mLocationClient = new LocationClient(this, this, this);
                  
                  @Override
                  protected void onStart() {
                      mLocationClient.connect();
                      super.onStart();
                  }
                  
                  @Override
                  protected void onStop() {
                      mLocationClient.disconnect();
                      super.onStop();
                  }
                  
                  //in button onclick method    
                  mCurrentLocation = mLocationClient.getLastLocation();
                  

                  I have no SIM card. If I enable Wifi then sometimes I get an accurate location. Other times mCurrentLocation is null.

                  If I disable Wifi then mCurrentLocation is always null.

                  I am testing outside in several locations always with a clear view of the sky. I waited three minutes in each location.

                  I never see the GPS icon appear on the Android notification bar at the top of the screen.

                  I have these location settings:

                  A GPS Test app manages to use GPS successfully indoors on the same device with Wi-Fi disabled so GPS is working:

                  Registering for location updates, as at https://developer.android.com/training/location/receive-location-updates.html, doesn't work either. Registered method never called.

                  What am I doing wrong?

                  解決方案

                  I solved it. The problem was that "Let Google apps access your location" was turned off:

                  When I turn it on I get GPS readings and when it's off I don't.

                  I had left it off for two reasons:

                  1. I'm developing an app to be used to lots of devices at a company and I want minimum manual configuration to be necessary

                  2. The screen says clearly "This setting affects Google apps only." I know that Play Services is Google software but I didn't think Google would expect an end user to understand that.

                  Then I got the Android 4.4.2 update and the location settings page has changed. It appears that I can have Google Location Reporting turned off and still get GPS readings from the fused location provider:

                  So maybe Google realised that the setting was confusing and improved it. Either way, I'd have saved a lot of time if I'd got 4.4.2 a few days ago.

                  這篇關于融合的位置提供者似乎沒有使用 GPS 接收器的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 或網絡提供商)
                    <tbody id='H2PJQ'></tbody>
                  <legend id='H2PJQ'><style id='H2PJQ'><dir id='H2PJQ'><q id='H2PJQ'></q></dir></style></legend>
                    <i id='H2PJQ'><tr id='H2PJQ'><dt id='H2PJQ'><q id='H2PJQ'><span id='H2PJQ'><b id='H2PJQ'><form id='H2PJQ'><ins id='H2PJQ'></ins><ul id='H2PJQ'></ul><sub id='H2PJQ'></sub></form><legend id='H2PJQ'></legend><bdo id='H2PJQ'><pre id='H2PJQ'><center id='H2PJQ'></center></pre></bdo></b><th id='H2PJQ'></th></span></q></dt></tr></i><div class="gixhsik" id='H2PJQ'><tfoot id='H2PJQ'></tfoot><dl id='H2PJQ'><fieldset id='H2PJQ'></fieldset></dl></div>

                      <tfoot id='H2PJQ'></tfoot>

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

                            <bdo id='H2PJQ'></bdo><ul id='H2PJQ'></ul>
                          • 主站蜘蛛池模板: 水厂自动化-水厂控制系统-泵站自动化|控制系统-闸门自动化控制-济南华通中控科技有限公司 | 集装箱展厅-住人集装箱住宿|建筑|房屋|集装箱售楼处-山东锐嘉科技工程有限公司 | PU树脂_水性聚氨酯树脂_聚氨酯固化剂_聚氨酯树脂厂家_宝景化工 | 中空玻璃生产线,玻璃加工设备,全自动封胶线,铝条折弯机,双组份打胶机,丁基胶/卧式/立式全自动涂布机,玻璃设备-山东昌盛数控设备有限公司 | 塑料熔指仪-塑料熔融指数仪-熔体流动速率试验机-广东宏拓仪器科技有限公司 | 江苏密集柜_电动_手动_移动_盛隆柜业江苏档案密集柜厂家 | 行星搅拌机,双行星搅拌机,动力混合机,无锡米克斯行星搅拌机生产厂家 | 正压送风机-多叶送风口-板式排烟口-德州志诺通风设备 | 电机保护器-电动机综合保护器-上海硕吉电器有限公司 | 药品/药物稳定性试验考察箱-埃里森仪器设备(上海)有限公司 | 东莞螺丝|东莞螺丝厂|东莞不锈钢螺丝|东莞组合螺丝|东莞精密螺丝厂家-东莞利浩五金专业紧固件厂家 | 蒸汽吸附分析仪-进口水分活度仪|康宝百科 | 欧盟ce检测认证_reach检测报告_第三方检测中心-深圳市威腾检验技术有限公司 | 美的商用净水器_美的直饮机_一级代理经销商_Midea租赁价格-厂家反渗透滤芯-直饮水批发品牌售后 | 进口消泡剂-道康宁消泡剂-陶氏消泡剂-大洋消泡剂 | 淘气堡_室内儿童乐园_户外无动力儿童游乐设备-高乐迪(北京) | 【同风运车官网】一站式汽车托运服务平台,验车满意再付款 | 安全光栅|射频导纳物位开关|音叉料位计|雷达液位计|两级跑偏开关|双向拉绳开关-山东卓信机械有限公司 | 博莱特空压机|博莱特-阿特拉斯独资空压机品牌核心代理商 | 真空泵厂家_真空泵机组_水环泵_旋片泵_罗茨泵_耐腐蚀防爆_中德制泵 | 飞象网 - 通信人每天必上的网站| 防勒索软件_数据防泄密_Trellix(原McAfee)核心代理商_Trellix(原Fireeye)售后-广州文智信息科技有限公司 | 对辊式破碎机-对辊制砂机-双辊-双齿辊破碎机-巩义市裕顺机械制造有限公司 | PCB厂|线路板厂|深圳线路板厂|软硬结合板厂|电路板生产厂家|线路板|深圳电路板厂家|铝基板厂家|深联电路-专业生产PCB研发制造 | 智能终端_RTU_dcm_北斗星空自动化科技| 青州搬家公司电话_青州搬家公司哪家好「鸿喜」青州搬家 | SF6环境监测系统-接地环流在线监测装置-瑟恩实业 | 合肥白癜风医院_[治疗白癜风]哪家好_合肥北大白癜风医院 | 定硫仪,量热仪,工业分析仪,马弗炉,煤炭化验设备厂家,煤质化验仪器,焦炭化验设备鹤壁大德煤质工业分析仪,氟氯测定仪 | 影合社-影视人的内容合作平台| 诸城网站建设-网络推广-网站优化-阿里巴巴托管-诸城恒泰互联 | Eiafans.com_环评爱好者 环评网|环评论坛|环评报告公示网|竣工环保验收公示网|环保验收报告公示网|环保自主验收公示|环评公示网|环保公示网|注册环评工程师|环境影响评价|环评师|规划环评|环评报告|环评考试网|环评论坛 - Powered by Discuz! | 北京模型公司-军事模型-工业模型制作-北京百艺模型沙盘公司 | 披萨石_披萨盘_电器家电隔热绵加工定制_佛山市南海区西樵南方综合保温材料厂 | 细石混凝土泵_厂家_价格-烟台九达机械有限公司 | H型钢切割机,相贯线切割机,数控钻床,数控平面钻,钢结构设备,槽钢切割机,角钢切割机,翻转机,拼焊矫一体机 | Win10系统下载_32位/64位系统/专业版/纯净版下载 | 酒万铺-酒水招商-酒水代理 | 首页|专注深圳注册公司,代理记账报税,注册商标代理,工商变更,企业400电话等企业一站式服务-慧用心 | 吸污车_吸粪车_抽粪车_电动三轮吸粪车_真空吸污车_高压清洗吸污车-远大汽车制造有限公司 | 广州展台特装搭建商|特装展位设计搭建|展会特装搭建|特装展台制作设计|展览特装公司 |