google-glass

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

DDMS unable to see Google Glass

删除回忆录丶 提交于 2019-12-17 11:13:51
问题 I am trying to get Eclipse and DDMS to see my Google Glass device. I have followed the instructions found here: https://developers.google.com/glass/develop/gdk/quick-start However the DDMS device list is still empty no matter what I do. I have tried multiple USB ports and different cables. The Device Manager can see the Glass device but the DDMS doesn't. The DDMS can see emulators however. After doing a little digging it seems that you need to make sure that a driver is installed for actual

Google Glass - 'Jump' to a card in CardScrollView?

故事扮演 提交于 2019-12-14 03:58:57
问题 I have a Google Glass app that uses a CardScrollView to display a series of Cards. Touch gestures work to move between cards, but I need to be able to jump to specific cards by their index. I want to use contextual voice commands (ignore its limitations for now) to do this, for example: "ok glass, go to card 25". I was hoping to be able to do something like this... CardScrollView mCardScrollView = new CardScrollView(this); // ... // "ok glass, go to card 25" // ... mCardScrollView.setFocus(25

Detect Google Glass Programmatically

淺唱寂寞╮ 提交于 2019-12-14 03:44:09
问题 From a native application how can we detect Google Glass verses a smart phone from code? Moving correct answer to question: boolean isRunningOnGlass() { return "Google".equalsIgnoreCase(Build.MANUFACTURER) && Build.MODEL.startsWith("Glass"); } 回答1: Another way of doing this would be to use the Build API: http://developer.android.com/reference/android/os/Build.html 回答2: Using the GDK, you could use: boolean isRunningOnGlass() { return "Google".equalsIgnoreCase(Build.MANUFACTURER) && Build