google-gdk

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.

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?

GDK picture intent gets stuck on Tap to accept

懵懂的女人 提交于 2019-12-18 13:34:23
问题 Today the picture function on my Glass app stopped working. It was fine yesterday, but now it gets stuck on the Tap to Accept Picture. I think it may have something to do with the new (to me at least) way it handles pictures as well as the viewfinder. What I can find on the glass developers site is deprecated and doesn't work. My hope/belief is that the new idea is for the intent to go to the viewfinder and then take the picture. I'd prefer to still use the glass method, but I am aware of the

GDK / APK for Google Glass - Keep screen from dimming

蹲街弑〆低调 提交于 2019-12-18 12:10:01
问题 What part of the code in the four sample APK projects listed here for Google Glass prevents the screen from dimming? When I write my own APK and sideload it, after ten seconds with no tapping, the screen dims but does not turn off. What manifest change or code change can I use to prevent the screen from dimming. Thanks! Should there be a Google-Glass-GDK tag? If so add it please. 回答1: There are a couple easy ways you can do this without requesting a wake lock: Add the android:keepScreenOn=

How to debug Google Glass GDK application?

梦想的初衷 提交于 2019-12-18 10:45:02
问题 It is easy to debug Android applications as most of them launch an activity and keeping breakpoint is all it takes. How to debug a GDK based google glass app as the service is triggered on voice and does not explictly launch an activity on install? 回答1: Same way any Android service is debugged. Just add the below line anywhere in the code and any breakpoint in the code after this can be used to stop the run. android.os.Debug.waitForDebugger(); Thanks to this - http://www.helloandroid.com

Glass GDk : Contextual voice commands without the “Ok Glass”

隐身守侯 提交于 2019-12-18 09:37:29
问题 I have an application with a CardScrollView as activity. Ok Glass => My App => Ok Glass => Next Page Or OK Glass => Previous Page Would it be possible to skip the second "Ok Glass" ? The best would be to let the Voice Command always activated but I don't know if it's possible. 回答1: It is currently not possible to trigger contextual voice commands without the "ok glass" cue: the main reasons are to prevent false positive and narrow down the window when the microphone is listening for commands.

Why does saving a bitmap take so long?

一笑奈何 提交于 2019-12-18 04:17:21
问题 So I have an app on Google Glass that takes a picture, then converts it to grayscale and overwrites the original image in memory: private void rGBProcessing (final String picturePath, Mat image) { //BitmapFactory Creates Bitmap objects from various sources, //including files, streams, and byte-arrays Bitmap myBitmapPic = BitmapFactory.decodeFile(picturePath); image = new Mat(myBitmapPic.getWidth(), myBitmapPic.getHeight(), CvType.CV_8UC4); Mat imageTwo = new Mat(myBitmapPic.getWidth(),

Why does saving a bitmap take so long?

允我心安 提交于 2019-12-18 04:17:09
问题 So I have an app on Google Glass that takes a picture, then converts it to grayscale and overwrites the original image in memory: private void rGBProcessing (final String picturePath, Mat image) { //BitmapFactory Creates Bitmap objects from various sources, //including files, streams, and byte-arrays Bitmap myBitmapPic = BitmapFactory.decodeFile(picturePath); image = new Mat(myBitmapPic.getWidth(), myBitmapPic.getHeight(), CvType.CV_8UC4); Mat imageTwo = new Mat(myBitmapPic.getWidth(),

How to Navigate a Google Glass GDK Immersion Application using Voice Command only?

别等时光非礼了梦想. 提交于 2019-12-17 18:55:25
问题 How would I go about coding a voice trigger to navigate Google Glass Cards? This is how I see it happening: 1) "Ok Glass, Start My Program" 2) Application begins and shows the first card 3) User can say "Next Card" to move to the next card (somewhat the equivalent of swiping forward when in the timeline) 4) User can say "Previous Card" to go back The cards that I need to display are simple text and images, I'm wondering if I can setup a listener of some type to listen for voice commands while