如果GPS关闭,我如何获得设备的位置?(How I can get the location of the device if the GPS is off?)

编程入门 行业动态 更新时间:2024-10-28 16:23:54
如果GPS关闭,我如何获得设备的位置?(How I can get the location of the device if the GPS is off?)

我想获得一个设备的经度和纬度,如果GPS关闭,希望可以是一个精确的位置

I would like to get the latitude and longitude of a device, if the GPS is off, well hopefully can be a precise location

最满意答案

您应该使用属于Google Play服务位置API的新LocationClient 。 它使用融合提供程序自动确定当时可用的最佳提供程序。 它还使用其他传感器来获得更准确的位置。

You should use the new LocationClient that is part of Google Play Services Location API. It uses a fused provider that automatically determines what is the best provider available at that moment. It also uses other sensors to get a more accurate location.

更多推荐

本文发布于:2023-08-07 14:17:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1464674.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何获得   位置   设备   GPS   location

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!