在Google Glass上的位置 [英] Location on Google Glass
问题描述
是否可以在不使用Mirror API的情况下获取用户的位置?
Google I/O视频黑客杯提到了目前可以使用的几种android API,并将gps列为其中之一,但是到目前为止我还没有走运.我知道Glass本身没有GPS,必须使用配对的手机GPS.如果我们可以使用现有的android位置管理器或更新的Google Play服务位置api,那将很棒!
Is it possible to get the user's location without using the Mirror API?
The hacking glass Google I/O video mentioned several android apis currently work and listed gps as one of them, however I have not had luck so far. I know Glass does not have GPS itself and must use the paired phones GPS. Would be awesome if we could use existing android location manager or newer Google play services location apis!
推荐答案
Yes, you can - if you use the GDK examples as a base and follow the Location Strategies (http://developer.android.com/guide/topics/location/strategies.html).
对于一个特定的示例,我刚刚发布了一个GDK Compass示例的黑客程序,以回答另一个问题,该问题添加了从GPS(带或不带配对电话)中提取的位置更新:
For a specific example, I just posted a hack of the GDK Compass sample in answer to another question that adds location updates pulled from the GPS (with or without a paired phone):
可以将GPS for Glass用作通过Android SDK访问?
这篇关于在Google Glass上的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!