【发布时间】:2014-08-19 14:40:42
【问题描述】:
我有一个需要定期访问位置数据的全屏 Android Wear 应用程序。我在this answer 中读到过,正确的方法是连接到 Google Play 服务,它应该透明地提供来自手机的位置数据。
我关注the documentation,并设置了覆盖所需方法的FragmentActivity。它已连接到 Google Play 服务,但 mLocationClient.getLastLocation() 不断返回 null。
设备是否还需要其他东西才能真正获得正确的最后位置?到目前为止,我什至还没有接触过移动应用程序——还有什么我需要在那里配置的吗? (我在两个应用程序上都添加了精细位置权限)。
【问题讨论】:
标签: android gps google-play-services wear-os