Android经纬度获取方式

bear1122ccc 2011-07-28 01:56:14
有三个经纬度获取方式,LocationManager.GPS_PROVIDER,通过GPS获取,房间里用不了。
LocationManager.NETWORK_PROVIDER网络获取方式,必须要有网络才能获取。
LocationManager.PASSIVE_PROVIDER。这个是什么方式啊?谁能给我具体的把这三个获取位置的方式说说?
...全文
686 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
findsafety 2013-01-25
  • 打赏
  • 举报
回复
A special location provider for receiving locations without actually initiating a location fix. This provider can be used to passively receive location updates when other applications or services request them without actually requesting the locations yourself. This provider will return locations generated by other providers. You can query the getProvider() method to determine the origin of the location update. Requires the permission ACCESS_FINE_LOCATION, although if the GPS is not enabled this provider might only return coarse fixes. Constant Value: "passive"

80,352

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧