Android moto 360 gen 1 上的可穿戴 GPS

Android wearable GPS on moto 360 gen 1

我想在 moto 360 上开发一个应用程序来获取用户当前的 gps 坐标,这是否可能,即使他们说它没有内置 gps 连接?我问的原因是它还说你可以 "track your watches location".. 如果它没有 gps,这怎么可能?它只使用主机设备吗?

  1. 即使他们说它没有内置 gps 连接,这是否可能?

是的,根据文档,这是可能的 "Detecting Location on Android Wear"

Location awareness on wearable devices enables you to create apps that give users a better understanding of their geographic position, movement and what's around them.

Some wearable devices include a GPS sensor that can retrieve location data without another tethered device. However, when you request location data in a wearable app, you don't have to worry about where the location data originates; the system retrieves the location updates using the most power-efficient method. Your app should be able to handle loss of location data, in case the wear device loses connection with its paired device and does not have a built-in GPS sensor.


  1. 没有gps怎么可能呢?它只使用主机设备吗?

可穿戴设备可以依赖系留连接获取位置数据

How to check for on-device location sensors, receive location data, and monitor tethered data connections.

  • Connect to Google Play Services
  • Request Location Updates
  • Detect On-Board GPS
  • Handle Disconnection Events
  • Synchronize Data

注意:

Not all wearables have a GPS sensor. If your user goes out for a run and leaves their phone at home, your wearable app cannot receive location data through a tethered connection. If the wearable device does not have a sensor, you should detect this situation and warn the user that location functionality is not available.

Wearable devices relying on a tethered connection for location data may lose their connections abruptly. If your wearable app expects a constant stream of data, you must handle the disconnection based upon where that data is interrupted or unavailable. On a wearable device with no onboard GPS sensor, loss of location data occurs when the device loses its tethered data connection.

In cases where your app depends on a tethered data connection for location data and the wear device does not have a GPS sensor, you should detect the loss of that connection, warn the user, and gracefully degrade the functionality of your app.

没有内置 GPS 的穿戴设备将依赖配对的手持 GPS 来获取或了解其位置。

希望对您有所帮助!