google-glass

PreferenceFragment cannot scroll up/down on XE16 (worked fine on XE12)

半腔热情 提交于 2019-12-21 05:29:09
问题 I have a few user preferences, mostly simple check-boxes, in my Glass GDK app. I could not find a glass specific preference paradigm, so I used PreferenceFragment and it worked fine on XE12. FYI: When I implemented it, it initially looked bad, but I improved that by using the following style in the AndroidManifest for my SettingsActivity: <style name="Theme.Preferences" parent="@android:style/Theme.Holo.NoActionBar.Fullscreen" /> I had no option to not update to XE16 (other than turning off

Location on Google Glass

五迷三道 提交于 2019-12-21 05:16:12
问题 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! 回答1: Yes, you can - if you use the GDK examples as a base and follow the Location

How to get last location on Glass reliably?

醉酒当歌 提交于 2019-12-21 04:45:12
问题 Method getLastLocation() from LocationManager often return null and it's quite tricky to select best provider. The documentation says: Warning: Do not use the LocationManager.getBestProvider() method or the constants GPS_PROVIDER or NETWORK_PROVIDER to listen for location updates. Glass uses a dynamic set of providers and listening only to a single provider may cause your application to miss location updates. How to get best last location? 回答1: Because Glass uses dynamic set of providers, you

Is it possible to play with Google Mirror API without having the device?

女生的网名这么多〃 提交于 2019-12-21 03:33:31
问题 I've been reading the documentation and playing at https://glass-java-starter-demo.appspot.com/ but it seems there is no way to further investigate since when following the instructions from https://developers.google.com/glass/playground at my https://code.google.com/apis/console/ the Google Mirror switch is not showing up. Is there any workaround? 回答1: According to issue #2 on the tracker (https://code.google.com/p/google-glass-api/issues/detail?id=2) access is currently restricted to

Hello World program for Google Glass - Step by Step

给你一囗甜甜゛ 提交于 2019-12-20 12:35:54
问题 I started reading stuff on Google Glass development one week ago, including this. However, I still could not find a tutorial to develop a "complete hello world program". What I meant by "complete" is; where to get the API, how to set up the API, how to write the hello world UI, how to write the code for the UI, how to install the emulator/simulator and test it. For an example, if you take a Java / Android / C++ / C# book, the first chapter is a hello world program, the "complete note" which

Running Timer, Stopwatch, and Compass example on Glass doesn't seem to work

人盡茶涼 提交于 2019-12-18 17:30:53
问题 I ran the timer, stopwatch, and compass example here: https://developers.google.com/glass/develop/gdk/quick-start#for_android_beginners However, the application builds but doesn't run. This is all I can get in logcat: [2013-11-19 15:58:21 - CompassMenuActivity] ------------------------------ [2013-11-19 15:58:21 - CompassMenuActivity] Android Launch! [2013-11-19 15:58:21 - CompassMenuActivity] adb is running normally. [2013-11-19 15:58:21 - CompassMenuActivity] No Launcher activity found!

GDK - keep screen from dimming on a live card

本秂侑毒 提交于 2019-12-18 17:27:56
问题 I have a high frequency live card published and I would like to keep the screen from dimming when the user is looking at the card. I realize that this is a duplicate question to this one GDK / APK for Google Glass - Keep screen from dimming but the answer seems to no longer work. The sample projects don't stay on screen anymore either. I have also tried acquiring the wake lock without success. Is there a way to keep the screen on? 回答1: The answer from the question you linked is for Immersion.

How to enable scrolling on a simpleadapter on Google Glass's firmware X16

谁说胖子不能爱 提交于 2019-12-18 17:24:05
问题 After updating my Google Glass up to XE16 my listview, which I have built by using a simpleadapter, is not able to scroll anymore. Is there a way to manually enable scrolling nonetheless with the GDK or fix this issue? 回答1: My listview stopped scrolling as well with the X16 update. You can build scrolling back in by doing the following: In your activity's onCreate method, be sure to: set the list's choice mode set the list's clickable property to true. set the list's onItemClick listener

How to test Mirror API Subscriptions

廉价感情. 提交于 2019-12-18 16:10:51
问题 The restrictions of a https callbackUrl and the nature of the subscriptions as a whole makes it seem like this is something that can only be done with a publicly accessible url. So far I have come across two potential solutions to make local development / debugging easier. The first is the Subscription Proxy service offered by google. This workaround essentially lets you remove the SSL restriction and proxy subscription callbacks to a custom URL. The second and most helpful way I have found

Is it possible to have Android Voice Recognition (as a custom service) on Google Glass?

一世执手 提交于 2019-12-18 13:37:52
问题 We have a demo android application (Android 4.0.3) that runs voice recognition as a service, and (continuosly) logs the results of the recognition on the view. Everything is working fine in our smartphones. We would like to replicate this scenario in a Google Glass immersion application, but we always have this error message when we try to start the service: no selected voice recognition service Are there some known limitations? Or have someone figured out how to resolve this kind of problem?