Place in Google Glass

Is it possible to get the user's location without using the Mirror API?
Hacked glass Google I / O videos mentioned several apis androids are currently working and gps is listed as one of them, however I have not been lucky yet. I know that Glass does not have GPS itself and must use paired GPS phones. It would be great if we could use the existing Android location manager and the newer Google Play services for apis services!

+4
source share
2 answers

Yes you can - if you use the GDK examples as a base and follow location strategies ( http://developer.android.com/guide/topics/location/strategies.html ).

For a specific example, I just posted a hacked GDK Compass sample in response to another question that adds location updates pulled from GPS (with or without a paired phone):

Can I access GPS for glass via the Android SDK?

+1
source

Google Glass does not have a GPS chip. I don’t understand why you cannot have an apk that uses the LocationManager and adds a listener to it that will print the latitude and longitude in Logcat or even on GLASS itself. Now, to get this location for a remote user, this will require more work than using the Mirror API.

0
source

Source: https://habr.com/ru/post/1498069/


All Articles