在moto 360 gen 1上的Android可穿戴GPS [英] Android wearable GPS on moto 360 gen 1

查看:169
本文介绍了在moto 360 gen 1上的Android可穿戴GPS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在moto 360上开发一个应用程序来获取用户当前的gps坐标,即使他们说它没有内置gps连接,这是可能的吗?我问的原因是它也说你可以跟踪你的手表位置..如果它没有GPS,这将是可能的吗?这是否只是使用主机设备?

解决方案


  1. 他们说它没有内置GPS连接?

是的,基于文档在Android Wear上检测位置


穿戴式设备上的位置感知功能可让您创建应用程序,让用户更好地了解其地理位置,移动方式以及周围的情况。

一些可穿戴设备包括一个GPS传感器,可以在没有另一个系绳设备的情况下检索位置数据。但是,当您在可穿戴应用程序中请求位置数据时,您不必担心位置数据的起源位置;系统使用最高效的方法检索位置更新。 您的应用应该能够处理丢失位置数据,以防万一佩戴设备与其配对设备失去连接并且没有内置GPS传感器







  1. 如果没有gps ?它是否仅仅为此使用主机设备?

可穿戴设备可能依赖于用于定位数据的连接连接。


如何检查设备上的位置传感器,接收位置数据和监测系留数据连接。
$ b


  • 连接到Google Play服务

  • 请求位置更新

  • 检测车载GPS

  • 处理断开连接事件

  • 同步数据



注意:不是所有的可穿戴设备都有GPS传感器。如果您的用户外出跑步并将手机留在家中,您的可穿戴应用无法通过连线连接接收位置数据。如果可穿戴设备没有传感器,您应该检测到这种情况并警告用户该位置功能不可用。

依靠连接进行定位的可穿戴设备数据可能会突然丢失连接。如果您的可穿戴应用需要持续的数据流,则必须根据数据中断或不可用的情况处理断开连接。在没有板载GPS传感器的可穿戴设备上,当设备失去连接的数据连接时,会丢失位置数据。

如果您的应用取决于系留数据连接对于位置数据,磨损设备没有GPS传感器,您应该检测到该连接丢失,并警告用户,并优雅地降低您的应用程序的功能。


没有内置GPS的佩戴设备将取决于配对的手持GPS以获知或了解其位置。



希望这帮助!


I would like to develop a app on the moto 360 that gets the users current gps coordinates, is this possible even though they say it doesnt have built in gps connectivity? The reason I ask is it also says you can "track your watches location".. How would this be possible if it doesnt have gps? Does it just use the host device for this?

解决方案

  1. Is this possible even though they say it doesnt have built in gps connectivity?

Yes it is possible, based on the document "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. How would this be possible if it doesnt have gps? Does it just use the host device for this?

It is possible for wearable devices to rely on a tethered connection for location data.

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

NOTE:

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.

Wear device without a built-in gps will depend on the paired handheld gps to get or be aware of its location.

Hope this helps!

这篇关于在moto 360 gen 1上的Android可穿戴GPS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆