google-gdk

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

喜夏-厌秋 提交于 2019-11-29 17:12:52
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. 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. I actually did this for my Glass app. Take a look here: https://github.com/RIVeR-Lab/google_glass_driver

Adding the “ok glass contextual voice menu” within an immersion activity

丶灬走出姿态 提交于 2019-11-29 13:49:49
问题 Is there a way to insert the "ok, glass" trigger into an immersion activity on Glass? I want to make the launch of my application as seamless and quick as possible. Making an immersion application seemed to be the way but I can not find a way to bring up the "ok, glass" footer trigger within my activity to launch my application menu to be navigated hands free. Any clue as to how this works? Note: I have a voice trigger to launch the app from the Glass home screen. I'm not creating a card but

Is it possible to set the background color on glass [gdk-immersion]?

非 Y 不嫁゛ 提交于 2019-11-29 13:03:18
my glass project is coming along great. I am wondering if it is possible to change the background color of a view. I am using an immersion and my entire app runs on that single view. The entire view is a relative layout. I originally tried to this from code by defining my relative layout and doing: rl.setBackgroundColor(color.empty_gray); But not change occured when this code was called. Then I tried adding it directly to the XML element with android:background="@color/warning_red" which also yielded nothing. Is it impossible to change the background color of the view? I know you can set a

How to scan a QR code using Google Glass?

若如初见. 提交于 2019-11-29 09:34:46
问题 I want to create a Google glass application in which i want to scan a QR code. I went through this post but i couldn't get clear idea. Read QR code Can anyone please direct me how to scan a QR code and get its content in Google Glass. Thanks 回答1: Instructions are using Android Development version of Eclipse. Glass is running a version of Android 4.0.3. You can slideload an app using an .apk This project, Barcode Eye, ports the ZXing project to Google Glass https://github.com/BarcodeEye

Why does saving a bitmap take so long?

和自甴很熟 提交于 2019-11-29 07:34:42
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(), myBitmapPic.getHeight(), CvType.CV_8UC1); Utils.bitmapToMat(myBitmapPic, image); Imgproc.cvtColor(image,

Unable to connect to Google Glass on Windows 7 (using ADT)

∥☆過路亽.° 提交于 2019-11-28 12:25:54
Environment : OS : Windows 7 Ultimate 64-bit, SP1 (latest patches) Hardware : Dell XPS L702X (8GB Ram) Android Developers Tool (ADT) : version adt-bundle-windows-x86_64-20131030 Google USB driver : version 9 Google Glass : "v2" device running XE12 Situation : Debug mode enabled on Google Glass; connected to USB port on computer; no device seen (ADT cannot find glass). The android_winusb information already contains the following settings for Glass: in NTx86 section: ;Google Glass %SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_9001 %CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID

Glass camera preview display is garbled

拟墨画扇 提交于 2019-11-28 08:45:32
I am trying to get a live camera preview to display in Google Glass. I'm using all of the camera defaults (and have also tried using a few different image formats; ideally, I can use one of the YUV formats), but the image that shows up in the display is garbled, like this: The layout is simple: <?xml version="1.0" encoding="utf-8"?> <TextureView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/scan_preview" android:layout_width="fill_parent" android:layout_height="fill_parent" /> Here is the Activity code: public class ScanActivity extends Activity { private static

Is it possible to set the background color on glass [gdk-immersion]?

丶灬走出姿态 提交于 2019-11-28 06:10:56
问题 my glass project is coming along great. I am wondering if it is possible to change the background color of a view. I am using an immersion and my entire app runs on that single view. The entire view is a relative layout. I originally tried to this from code by defining my relative layout and doing: rl.setBackgroundColor(color.empty_gray); But not change occured when this code was called. Then I tried adding it directly to the XML element with android:background="@color/warning_red" which also

Google Glass Sample APKs

非 Y 不嫁゛ 提交于 2019-11-27 21:52:17
问题 I can get the sample APK CompassActivity app to run on Glass but no luck with LevelActivity or StopWatchActivity? I am using Eclipse. Log below. Any suggestions? [2013-07-29 17:02:18 - LevelActivity] ------------------------------ [2013-07-29 17:02:18 - LevelActivity] Android Launch! [2013-07-29 17:02:18 - LevelActivity] adb is running normally. [2013-07-29 17:02:18 - LevelActivity] No Launcher activity found! [2013-07-29 17:02:18 - LevelActivity] The launch will only sync the application

Unable to connect to Google Glass on Windows 7 (using ADT)

守給你的承諾、 提交于 2019-11-27 07:03:07
问题 Environment : OS : Windows 7 Ultimate 64-bit, SP1 (latest patches) Hardware : Dell XPS L702X (8GB Ram) Android Developers Tool (ADT) : version adt-bundle-windows-x86_64-20131030 Google USB driver : version 9 Google Glass : "v2" device running XE12 Situation : Debug mode enabled on Google Glass; connected to USB port on computer; no device seen (ADT cannot find glass). The android_winusb information already contains the following settings for Glass: in NTx86 section: ;Google Glass